[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Understanding axis
Adam */* and */child::* are the same (because */* includes a child:: by default) > <xsl:for-each select="*/child::*[local-name()=$v]"> > </xsl:for-each> This reads as "any child node of the context node (*) that has any child node (child::*) which has a local name of $v ([local-name()=$v])" > read as I only want */* where they have a child named $v. Do you want grandchildren of the context node called $v? If so, */*[local-name()=$v] Children of the context node called $v would be *[local-name()=$v] Children of the context node (themselves having a child called $v) would be *[child::*[local-name()=$v]] or child::*[child::*[local-name()=$v]] Kind regards, James Carlyle FableFlow : MMS templating and delivery Multimedia Messaging commentary : http://www.fableflow.com/weblog/ Telephone : +44 (0)20 7813 0665 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
|