Hi. I'm using MkIV's XML stuff. I have two related questions. Firstly, can I have entities in XML expand out to TeX markup?
I thought this was how you'd do it, but this produces a document that says literally "xxx~yyy\thinspace zzz", whereas I want the ~ and \thinspace to be executed as TeX commands. Test case below. Secondly, is it possible to have ConTeXt load such entities from a DTD? If I use a DOCTYPE in my XML, entities from that DTD seem to not be loaded. Thanks. a.xml: <?xml version="1.0"?> <a>xxx yyy zzz</a> a.tex: \startxmlsetups xml:mysetups \xmlsetsetup{\xmldocument}{a}{xml:*} \stopxmlsetups \xmlregistersetup{xml:mysetups} \startxmlsetups xml:a \xmlflush{#1} \stopxmlsetups \xmlsetentity{nbsp}{~} \xmlsetentity{thinsp}{\thinspace} \starttext \xmlprocessfile{main}{a.xml}{} \stoptext -- Kate ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________