This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: How do I get the name of the current node
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: How do I get the name of the current node
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Thu, 26 Oct 2000 16:58:48 +0100
- Reply-To: xsl-list at mulberrytech dot com
> <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