Subject: Re: [xsl] Replacing default namespace From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Mon, 02 Jul 2007 13:46:27 +0200 |
Martin Honnen wrote:
To avoid that use a template like this
<xsl:template match="*"> <xsl:element name="{name()}" namespace="{namespace-uri()}"> <xsl:apply-templates select="@* | node()"/> </xsl:element> </xsl:template>
for element nodes that you want to copy without its namespaces nodes.
Your code mimics the xsl:copy behavior. I assume you meant:
<xsl:element name="{name()}" namespace="http://othernamespace">
<xs:simpleType xmlns:tns="http://tempuri.org/" name="addrFormat">
<service xmlns:tns="http://tempuri.org/" name="SessionsService">
Martin Honnen http://JavaScript.FAQTs.com/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Replacing default namespa, Abel Braaksma | Thread | Re: [xsl] Replacing default namespa, Scott Sauyet |
Re: [xsl] document() can not used i, Manfred Staudinger | Date | [xsl] Testing with MSXML 3.0 or MSX, Manfred Staudinger |
Month |