[NTG-context] howto execute loaded xml?
Meer, H. van der
H.vanderMeer at uva.nl
Wed Mar 21 10:27:44 CET 2012
I made a minimal example showing that load'ed xml is not typeset. In contrast to the first <text>-node the second comes out as xml and not as typeset text.
What has to be done to change that?
Thanks in advance.
Hans van der Meer
\startbuffer[load-1]
<?xml version="1.0" encoding="UTF-8"?>
<myroot>
<include buffer="load-2"/>
<text>buffer[load-1] contents</text>
</myroot>
\stopbuffer
\startbuffer[load-2]
<includes>
<text>Included buffer[load-2] contents & ampersand.</text>
</includes>
\stopbuffer
\startxmlsetups load:setups
\xmlsetsetup{\xmldocument}{myroot|text|include}{load:*}
\stopxmlsetups\xmlregistersetup{load:setups}
\startxmlsetups load:myroot
\writestatus{TEST-LOAD}{loading myroot}
\xmlall{#1}{include}
\xmlall{#1}{text}
\xmlall{includes}{text}
\stopxmlsetups
\startxmlsetups load:text
*** \xmlflush{#1} ***\par
\stopxmlsetups
\startxmlsetups load:include
\writestatus{TEST-LOAD}{loading include}
\xmlloadbuffer{includes}{load-2}
\stopxmlsetups
\enabletrackers[lxml.loading]
\setuppapersize[S5][S5]
\starttext
\hairline
\xmlprocessbuffer{myroot}{load-1}{}
\hairline
\stoptext
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20120321/729169a0/attachment.html>
More information about the ntg-context
mailing list