I cannot get \xmlinclusion working. Below an MWE with its output. What I am missing here or is \xmlinclusion not ok?

\startxmlsetups demo
\xmlsetsetup{#1}{
root|test
}{demo:*}
\stopxmlsetups
\xmlregisterdocumentsetup{demo}{demo}

\startxmlsetups demo:root
\blank{\bf Start test}\crlf
\string\xmlinclusion\{\#1\} ===> "\xmlinclusion{#1}"\crlf
\xmlflush{#1}\crlf
{\bf End test}\blank
\stopxmlsetups

\startxmlsetups demo:test
\xmlflush{#1}
\stopxmlsetups

\starttext
\currentdate-\currenttime\quad\ConTeXt-version=\contextversion\blank
The following text is on page 52 of xml-mkiv.pdf:\crlf
\type{\xmlinclusion{...}}\crlf
returns the file where the node comes from\blank
Follows the test of this claim:
\xmlprocessfile{demo}{demo.xml}{}\blank

\typefile{demo.xml}
\stoptext

<?xml version="1.0" encoding="UTF-8"?>
<root>
<test>node TEST</test>
</root>

Attachment: xml-inclusion.pdf
Description: Adobe PDF document

met vriendelijke groet,
dr. Hans van der Meer
Burgemeester Rijnderslaan 244 ingang D
1185 MC Amstelveen
tel. 020 6452701 / 06 53743629

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to