[NTG-context] xml input

Meer, Hans van der H.vanderMeer at uva.nl
Sat Apr 23 13:18:35 CEST 2016


For those still interested in the inclusion of nodes into the root of the xml-tree.
With the help of a hint by Hans Hagen, the following is the best I am able to produce.
The code below includes the contents of the file twice as can be seen in the pdf.

\startbuffer[test]
<?xml version="1.0" encoding="UTF-8"?>
<takenotes>
<include file="minimal-example.xml"/>
<include file="minimal-example.xml"/>
</takenotes>
\stopbuffer

\startxmlsetups notes:setups
\xmlinclude{#1}{include}{file}
\xmlsetsetup{#1}{takenotes}{notes:*}
\stopxmlsetups
\xmlregisterdocumentsetup{demo}{notes:setups}

\startxmlsetups notes:takenotes
\xmlshow{\xmldocument}
\stopxmlsetups

\starttext
\xmlprocessbuffer{demo}{test}{}
\stoptext


Hans van der Meer




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20160423/5e02b7ed/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mini.pdf
Type: application/pdf
Size: 9054 bytes
Desc: mini.pdf
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20160423/5e02b7ed/attachment.pdf>


More information about the ntg-context mailing list