I have a XML doc (not my own design) something like
<doc>
<name>Title</name>
<part>
<name>Part</name>
<subpart>
<name>Sub Part<name>
</subpart>
</part>
...
</doc>
I want a cts:search query that will match <name>Title</name> but not
<name>Sub Part<name> or other names.
cts:search( doc("doc")/doc , cts:element-value-query( xs:QName("name") ,
"Sub Part") )
matches when I do not want it to. How can I restrict
cts:element-value-query from matching descendant nodes ?
I looked at adding an and-not-query but that wont work because its
possible for multiple name elements to have the
same value and I dont want a match discarded just because it matched in
multiple places.
Any suggestions ?
----------------------------------------
David A. Lee
Senior Principal Software Engineer
Epocrates, Inc.
[email protected] <mailto:[email protected]>
812-482-5224
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general