OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: €?

Hash: SHA1

/ Tim Waugh <twaugh@redhat.com> was heard to say:
| On Thu, May 22, 2003 at 07:26:48PM +0200, flo@abwesend.de wrote:
|> &euro; works, it is declared as an entity to its unicode character at the
|> docbookx.dtd:
|> <!ENTITY euro "&#x20AC;">
| Oh, wait, I misunderstood--I thought docbookx.dtd was just for XML.
| But this is what's tripping me up:
| <![%sgml.features;[
| <!ENTITY euro "[euro  ]"><!-- euro sign, U+20AC NEW -->
| ]]>
| <![%xml.features;[
| <!ENTITY euro "&#x20AC;"><!-- euro sign, U+20AC NEW -->
| ]]>
| Why is &#x20AC; restricted to XML documents?

Because SGML traditionally has used SDATA entities. There's a bug there, however,
in that if %sgml.features; is true, the entity declaration should be:

 <!ENTITY euro SDATA "[euro  ]"><!-- euro sign, U+20AC NEW -->

If adding SDATA fixes the problem, please let me know. If not, try
adding your own declaration for &euro; pointing to the Unicode code
point. That should work, if your SGML processor understands Unicode.

(SGML has all sorts of magic in the SGML Declaration to handle
multiple character sets.)

                                        Be seeing you,

- -- 
Norman Walsh <ndw@nwalsh.com>      | Before doing someone a favour,
http://www.oasis-open.org/docbook/ | make sure that he isn't a
Chair, DocBook Technical Committee | madman.--Eugéne Labiche
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.7 <http://mailcrypt.sourceforge.net/>


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]