This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Converting attributes into child elements
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Converting attributes into child elements
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Sun, 12 Nov 2000 00:26:05 -0000
- Reply-To: xsl-list at mulberrytech dot com
> 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