This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: How do I get the name of the current node


> <assembly>
> 	<sprogit sku="180" colour="blue" /> 
> </assembly>
> 
> <xsl:for-each select="assembly/*">	
> <xsl:choose>
> 		<xsl:when test="./sprogit">

Your for-each loop is processing the children of <assembly>, e.g. the
<sprogit> element. Your <xsl:when> is testing whether the current element
has a <sprogit> child. Since it is a <sprogit> itself, it doesn't.

Mike Kay 


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]