Subject: RE: [xsl] Understanding axis From: "James Carlyle" <james.carlyle@xxxxxxxxxxxx> Date: Thu, 17 Oct 2002 17:17:06 +0100 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Understanding axis, Adam Griffin | Thread | [xsl] Namespaces and the identity t, James Carlyle |
Re: [xsl] check if a node is empty, Vasu Chakkera | Date | [xsl] JS language binding, Langston, Doug |
Month |