[NTG-context] m-letter backslash codes in xml database

h h extern pragma at wxs.nl
Fri Jan 14 17:44:50 CET 2005


Rob Ermers wrote:
> Contexers,
> 
> That the best way for coding diacritics in the xml database which you 
> wish to use for your mailing is by using the appropriate iso-latin1 or 
> unicode number:
> 
>      <contact num="3" regio="z3" label=`num3'>
>      <address>
>           <p>J. Sch&#246;ttelndreher</p>
>           <p>J. Sch&#xF6;ttelndreher</p>
>           <p>Laan der Drie&#235;enheid</p>
>           <p>Laan der Drie&#xEB;enheid</p>
> ....
>      </address>
>               </contact>
> 
> The unicode number (&#x..) gives a slightly better result in my pdf.

if you want to move things around in an encoding neutral way:

\defineXMLsingular
   [c]
   [n=unknowncharacter]
   {\executeifdefined {\XMLop{id}} \unknowncharacter}

<c n='eacute'/>

sometimes it's handier to move elements around than entities

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------



More information about the ntg-context mailing list