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