On Sat, 25 Oct 2008 13:00:41 +0200, Martin Honnen <mahotrash@yahoo.de>
wrote:
Quote:
>kishjeff wrote: Quote:
>I'm still looking at this.. is this even possible?
>I'd like to search a set of xml files
>I want to skip all xml files that have a <clientelement that
>contains more than one <majortabelement,
>but otherwise search for some elements with a @select attribute.
>>
>So I'm not sure how to skip the docs (or at least prevent them from
>being included in the results) that have say:
>>
><client>
><majortab ... /><majortab ... />
></client>
| >
>Well if you use XSLT or XQuery then you can certainly check whether
count(/client/majortab) 1
>With XSLT 2.0 or XQuery 1.0 you can load multiple XML source documents
>using the collection function, see
>http://www.saxonica.com/documentatio...llections.html for
>instance how that works with Saxon 9.
|
Yes, I have used the collection to load multiples, but I am not sure
how to exclude them from the processing based on whether or not they
have a certain element combination.
It is xquery, but a slightly older version... it is actually
ipsi-xq-1.3.4
I really like it.
Unfortunately it seems to be having a problem with starts-with
functions so I might have to cast about for another implementation if
I need to use that.
So I'm not sure how to structure the query so that the client/majortab
count 1 go ahead v.s. skip if < =1
thanks
Jeff