Project

Profile

Help

Bug #2534 » test.xsl

Peter Ross, 2015-12-10 06:48

 
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output method="xml" indent="yes" encoding="utf-8"/>

<xsl:template match="document">
<document>
<xsl:apply-templates select="*"/>
</document>
</xsl:template>

<xsl:template match="data">
<data>
<xsl:attribute name="value"><xsl:value-of select="@value"/></xsl:attribute>
</data>
</xsl:template>

</xsl:stylesheet>
(1-1/3)