[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: easy XPath question
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
|
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
|