[xsl] Loosing children

Subject: [xsl] Loosing children
From: Johan Thorèn (EAB) <Johan.Thoren@xxxxxxxxxxxxxxx>
Date: Fri, 4 Apr 2003 16:26:52 +0200
Any errors in this? I loose children from my xml using it...

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0">
<xsl:template match="*">
   <xsl:text></xsl:text> 
   <xsl:value-of select="./@name"/>
   <xsl:text> </xsl:text>
   <xsl:value-of select="./@value"/>
   <xsl:text> </xsl:text>
   <xsl:for-each select="child::*"> 
      <xsl:apply-templates/>
   </xsl:for-each>
   <xsl:value-of select="./@name"/>
   <xsl:text></xsl:text>
</xsl:template>

</xsl:stylesheet>

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


Current Thread