ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* nested \xmlprocessfile calls
@ 2017-06-13 11:12 Meer, Hans van der
  0 siblings, 0 replies; only message in thread
From: Meer, Hans van der @ 2017-06-13 11:12 UTC (permalink / raw)
  To: NTG ConTeXt


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

In a document
<root> <file name="file1"/><file name="file2"/></root>
a series of xml files is processed.

The nodes processed are as usual defined in
\xmlsetsetup{#1}\writestatus{}{MARKER}{node1|node2|..}{name:*}\stopxmlsetups
\xmlregistersetup{name:setups}

The root is called with \xmlprocessfile{root}{filename}{} and has a setup as follows:
\startxmlsetups name:root
% each inner <file> node is in turn called with
  \xmlprocessfile{root-node in file}{filename from attribute}{}
\stopxmlsetups

The problem is that the \xmlsetsetup is called each time one of the file's is processed, as shown by the MARKER in the log. However, it is the intention to process the setups one and for all.
How can the apparent rereading on the defining setups be restricted to an inital setup only?

Hans van der Meer





[-- Attachment #1.2: Type: text/html, Size: 1990 bytes --]

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

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

only message in thread, other threads:[~2017-06-13 11:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-13 11:12 nested \xmlprocessfile calls Meer, Hans van der

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).