RE: [xsl] easy XPath question

Subject: RE: [xsl] easy XPath question
From: "Oleg Tkachenko" <olegt@xxxxxxxxxxxxx>
Date: Mon, 6 Aug 2001 22:59:02 +0200
Hello Sanjay !

> Actually, I could find the solution myself.
I think it's better in any situation ! :)

> I believe that the solution
> mentioned by you would not work! I get the desired result once I start
> searching from
> level1[@type='one'] level by putting //level2[@name]
> 
> So, level1[@type='one']//level2[@name] works for me.
Ok, but why do you use // instead of / ? In the sample you've provided every level2 node is a children of level1 node, so child axis (/) was enough, if this is not true for the rest of your data you really have to look more deeply by descendant (//) axis.

---
Oleg Tkachenko,
Multiconn International 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread