|
Subject: [xsl] Identity without namespaces From: "Joe Fawcett" <joefawcett@xxxxxxxxxxx> Date: Sun, 2 Oct 2005 11:00:47 -0700 |
<xsl:template match="/">
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
</xsl:copy>
</xsl:template>
<xsl:template match="@*"> <xsl:attribute name="{local-name()}"> <xsl:value-of select="." /> </xsl:attribute> </xsl:template>
<xsl:template match="comment() | processing-instruction() | text()"> <xsl:copy /> </xsl:template>
<xsl:template match="node()">
<xsl:element name="{local-name()}">
<xsl:apply-templates select="node()|@*"/>
</xsl:element>
</xsl:template>| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] php xml xsl transformatio, andrew welch | Thread | Re: [xsl] Identity without namespac, Geert Josten |
| Re: [xsl] php xml xsl transformatio, andrew welch | Date | [xsl] Clark notation in XPath, Joe Fawcett |
| Month |