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



Here's a stab that might be incorrect:

	//b[local-name(preceding-sibling::node()[1]) != 'a']

-bob


On Wed, 17 Jul 2002, Garland foster wrote:

> <foo>
> <b/>
> <a/>
> <b/>
> <a/>
> <b/>
> </foo>
> 
> Return all the "b" nodes that are inmediately preceded by an "a" element (the bold nodes).
> 
> It's easy but I'm lost :-(
> 
> Thanks,
> Garland.


  • References:
    • Quick Xpath
      • From: "Garland foster" <garland_foster@s...>
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member