I can achieve that if I replace the template that matches xh:a with
the following -
<xsl:template match="xh:a">
<xsl:element name="{local-name()}">
<xsl:copy-of select="@*|text()"/>
</xsl:element>
</xsl:template>
However it does not seem like a good solution - is there a better way
of achieving this?
That's pretty much it - you have to a create a new element with the
same local name in a different namespace.
So along with the identity template, have:
<xsl:template match="*">
<xsl:element name="{local-name()}">
<xsl:apply-templates select="@*|node()"/>
</xsl:element>
</xsl:template>
--
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--