Re: [NTG-context] filtering xml

2011-02-22 Thread Hans Hagen
On 22-2-2011 8:34, Thomas A. Schmitz wrote: xml blob \xmlsetsetup{#1}{B/C/..[1]}{xml:C:first} select all B select all C in found B's select first in all found \startbuffer[test] A Bcat/B BCdog/C/B BCmouse/C/B BCdonkey/C/B Bgiraffe/B /A \stopbuffer \startxmlsetups

[NTG-context] filtering xml

2011-02-21 Thread Thomas Schmitz
Hi all, this must be easy, but I don't find the solution. Given an xml structure like this: X Adog/A ABcat/B/A ABmouse/B/A /X which \xmlfilter expression do I need to get the first A element which has a subelement B? I.e., the filter should only return cat, not dog or mouse. There

Re: [NTG-context] filtering xml

2011-02-21 Thread Thomas A. Schmitz
On Feb 21, 2011, at 11:37 PM, Hans Hagen wrote: On 21-2-2011 8:11, Thomas Schmitz wrote: Hi all, this must be easy, but I don't find the solution. Given an xml structure like this: X Adog/A ABcat/B/A ABmouse/B/A /X which \xmlfilter expression do I need to get the first A element