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>
&lt;html&gt;
&lt;body&gt;
&lt;p&gt;Some text&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;
</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
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to