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

Subject: RE: How do I get the name of the current node
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Thu, 26 Oct 2000 16:58:48 +0100
> <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


Current Thread