OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] Quick Xpath

[ Lists Home | Date Index | Thread Index ]


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@salutia.com>



 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS