Okay, you start with the identity template:
Code:
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
and then add the template Michael showed to form the new style ServiceAttribute element:
Code:
<xsl:template match="ServiceAttribute">
<ServiceAttribute>
<xsl:element name="{Name}">
<xsl:copy-of select="Value"/>
</xsl:element>
</ServiceAttribute>
</xsl:template>
This gives the full stylesheet as:
Code:
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="ServiceAttribute">
<ServiceAttribute>
<xsl:element name="{Name}">
<xsl:copy-of select="Value"/>
</xsl:element>
</ServiceAttribute>
</xsl:template>
</xsl:stylesheet>
--
Joe (
Microsoft MVP - XML)