On 9-6-2011 10:21, Thomas A. Schmitz wrote:
Hi,
here is another problem with the latest beta - this used to work, but maybe
Hans has developed a different mechanism for it?
\startbuffer[test]
<a>Hello&thinspace;World</a>
\stopbuffer
\startxmlsetups xml:testsetups
\xmlsetsetup{\xmldocument}{a}{xml:*}
\stopxmlsetups
\xmlregistersetup{xml:testsetups}
\startxmlsetups xml:a
\xmlflush{#1}
\stopxmlsetups
\xmlsetentity{thinspace}{\,}
\starttext
\xmlprocessbuffer{main}{test}{}
\stoptext
looks like something is going wrong with the catcodes in translating the xml,
the \, is written to the output instead of processed.
Its a chicken-egg problem when to expand some of them. I uploaded a beta
that makes a destinction:
\startbuffer[test]
<a>
Hello&thinspace-a;World
Hello&thinspace-b;World
</a>
\stopbuffer
\startxmlsetups xml:testsetups
\xmlsetsetup{#1}{*}{xml:*}
\stopxmlsetups
\xmlregistersetup{xml:testsetups}
\startxmlsetups xml:a
\xmlflush{#1}
\stopxmlsetups
\xmlsetentity{thinspace-a}{\,}
\xmltexentity{thinspace-b}{\,}
\starttext
\xmlprocessbuffer{main}{test}{}
\stoptext
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / 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
___________________________________________________________________________________