Posted to tcl by evilotto at Fri Jun 28 23:54:11 GMT 2013view raw
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
- xmlns:x="http://www.w3.org/1999/xhtml"
- >
- <xsl:template match="x:*">
- <xsl:element name="{local-name(.)}">
- <xsl:apply-templates select="@*|*|text()"/>
- </xsl:element>
- </xsl:template>
- <xsl:template match="@*">
- <xsl:attribute name="{name(.)}"><xsl:value-of select="."/></xsl:attribute>
- </xsl:template>
- </xsl:stylesheet>