Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Complicated XPATH to return a nodeset based on a sibling node's value

From: ptjm@--------.--- (------- -- ------)
To: NULL
Date: 9/2/2004 12:29:00 AM
In article <2pklh9Flek0fU1@u...>,
Patrick TJ McPhee <ptjm@i...> wrote:

%  a[a1/@attr = "key" and a1 = "Use"]/a1[@attr = "val"]

There's a subtle error here. It should be

  a[a1[@attr = "key" and . = "Use"]]/a1[@attr = "val"]

You could read this as `the set of a1 elements with attribute attr equal
to "val", whose parent element is an a element which has a child a1
element, which has attribute attr equal to "key" and whose text content
is "Use"'.

The incorrect version might read `the set of a1 elements with attribute
attr equal to "val", whose parent element is an a element which has a
child a1 element which has attribute attr equal to "key" and which also
has a child a1 element whose text content is "Use"'.

Sorry.
-- 

Patrick TJ McPhee
East York  Canada
ptjm@i...


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent