RE: Converting attributes into child elements

Subject: RE: Converting attributes into child elements
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Sun, 12 Nov 2000 00:26:05 -0000
> I need some help with a transformation.  I would like to take 
> an element
> with multiple attributes and convert them so the attributes 
> are now child
> elements of the original element.

<xsl:for-each select="@*">
  <xsl:element name="{name(.)}">
    <xsl:value-of select="."/>
  </xsl:element>
</xsl:for-each>

Mike Kay
> 


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


Current Thread