ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] \xmlinclusion?
@ 2023-11-09 16:19 Hans van der Meer via ntg-context
  0 siblings, 0 replies; only message in thread
From: Hans van der Meer via ntg-context @ 2023-11-09 16:19 UTC (permalink / raw)
  To: NTG ConTeXt; +Cc: Hans van der Meer


[-- Attachment #1.1: Type: text/plain, Size: 1045 bytes --]

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>


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


[-- Attachment #1.2.1: Type: text/html, Size: 2046 bytes --]

[-- Attachment #1.2.2: xml-inclusion.pdf --]
[-- Type: application/pdf, Size: 17770 bytes --]

[-- Attachment #1.2.3: Type: text/html, Size: 730 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-11-09 16:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-09 16:19 [NTG-context] \xmlinclusion? Hans van der Meer via ntg-context

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).