[Home] [By Thread] [By Date] [Recent Entries]

  • To: xml-dev@l...
  • Subject: xpath: which is right?
  • From: Suzan Foster <su@i...>
  • Date: Sat, 3 Apr 2004 20:10:44 +0200

Taking the following XML:

  <foo>
     <bar id="1" />
     <bar id="2" />
     <bar id="3" />
     <fu />
   </foo>

which value should be returned by the xpath:

preceding::bar[1]/@id

libxslt says 3, whilst XML::XPath says 1.

groetjes, su.


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member