Great! Thank you very, very much for your help, Hans! Richard Hans Hagen wrote:
Richard Gabriel wrote:
Hello Hans,
thank you very much for the advice. It works almost perfectly, except one small (but important) detail: Let's have a HTML source code in the <programlisting> tag. It will be stored the following way in the XML file: <programlisting> <html> <body> <p>Some text</p> </body> </html> </programlisting>
I have defined the entity conversion: \defineXMLentity[gt]{\char`\>{}} \defineXMLentity[lt]{\char`\<{}}
This works OK if the entities occur somewhere in the normal text but it doesn't matter in the verbatim text. Is there any solution for this? Maybe changing catcodes of the & and ; characters?
maybe it's enough to add
\catcode`\&=\active
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 -----------------------------------------------------------------
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context