xsl-list
[Top] [All Lists]

Loosing children

2003-04-04 07:26:52

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



<Prev in Thread] Current Thread [Next in Thread>