[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: some XPath please ?
Please, Ignore the 3D, it is a character converted by outlook when switching to text only... -----Message d'origine----- De : Fabien Tillier [mailto:f.tillier@xxxxxxxx] Envoyi : mercredi 23 juin 2010 08:51 @ : xsl-list@xxxxxxxxxxxxxxxxxxxxxx Objet : some XPath please ? Hi List. Suppose I get a (simple) XML <xml> <tag1> <tag2> <tag3/> <tag3/> </tag2> <tag2> <tag3/> <tag3/> <tag3/> </tag2> </tag1> <tag2> <tag3/> <tag3/> </tag2> <tag2> <tag3/> <tag3/> <tag3/> </tag2> </xml> What if I want to select all tag2 elements that did not have a tag1 above ? I have tried "//tag2[parent::node!=3D'tag1']/*" But it gets all ... And "//tag2[parent::node!=3Dtag1]/*" Gets nothing (and I would prefer not using the higher level nodes like /xml/tag2 against /xml/tag1/tag2) Thanks in advance ! Regards, Fabien
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|