ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* searching xml node tree
@ 2011-12-31 15:45 Meer, H. van der
  0 siblings, 0 replies; only message in thread
From: Meer, H. van der @ 2011-12-31 15:45 UTC (permalink / raw)
  To: ConTeXt NTG

In the processing of xml data path expressions like a/(b|c)/*/d etc. can be used.
However, I have a node that can be present inside every node of the tree.
One method to collect these all together is bij successive calls:
\xmlall{#1}{/node}, \xmlall{#1}{/*/node}, \xmlall{#1}{/*/*/node}, etc.
But that fails if the tree is deeper than foreseen.
I tried recursive searching within the node-setup-processor by calling \xmlall{#1}{../*/node} but either this fails or I am not doing it the right way.
Any ideas?

Hans van der Meer



___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

only message in thread, other threads:[~2011-12-31 15:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-31 15:45 searching xml node tree Meer, H. 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).