Next in thread → Next in month →

Re: DOCBOOK: Default entities not working

From
@orman Valsh
Date
2001-04-22T14:09:29+00:00
ID
Thread
Re: DOCBOOK: Default entities not working
/ Horacio <> was heard to say:
| whenever I try to put the attribute value in between quotes when
| defining an entity like:
| 
| <!ENTITY bsd "<systemitem class="osname">BSD</systemitem>">
| 
| I get the following error message:
| 
| openjade:entidades.ent:1:34:E: name start character invalid: only delimiter ">" and parameter separators are allowed
| 
| Is there any substitute for double quotes for declaring entities?

Yep. Single quotes:

 <!ENTITY bsd '<systemitem class="osname">BSD</systemitem>'>

or

 <!ENTITY bsd "<systemitem class='osname'>BSD</systemitem>">

And if you really needed both kinds, &apos; and &quot; are ' and "
respectively

| Also, some default entities like &lsqb;, &rsqb;, &hellip;, ...
| don愒 produce the expected character output.  I扉e noticed this
| also happens in some documents around the Internet.  Is there any
| solution other than declaring an entity which should be declared
| by default?

It's reallly a matter of what HTML browsers understand, not the SG/XML
sources.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <>      | It is better to waste one's youth
http://www.oasis-open.org/docbook/ | than to do nothing with it at
Chair, DocBook Technical Committee | all.--Georges Courteline
Next in thread → Next in month →