[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
hi
i have to remove namespace declarations in certain elements. i.e. i have this one:
<Facts xmlns:html="http://www.w3.org/HTML/1998/html4" xmlns:xlink="http://www.w3.org/1999/xlink">
<lotOfElements/>
</Facts>
and i want to get this one:
i can't manage to get there. even when i try to remove all attributes from the element
does not remove these unnecessary namespaces. i was searching for an answer but could only find how to remove namespace prefixes. but i have to remove the declarations. any help is very appreciated.
[xsl] how to remove namespace declarations
Subject: [xsl] how to remove namespace declarations From: Frank Marent <frank.marent@xxxxxxxxxxx> Date: Tue, 28 Aug 2007 13:27:41 +0200 |
hi
i have to remove namespace declarations in certain elements. i.e. i have this one:
<Facts xmlns:html="http://www.w3.org/HTML/1998/html4" xmlns:xlink="http://www.w3.org/1999/xlink">
<lotOfElements/>
</Facts>
and i want to get this one:
<Facts> <lotOfElements/> </Facts>
i can't manage to get there. even when i try to remove all attributes from the element
<xsl:template match="Facts"> <xsl:copy> <xsl:apply-templates select="*"/> </xsl:copy> </xsl:template>
does not remove these unnecessary namespaces. i was searching for an answer but could only find how to remove namespace prefixes. but i have to remove the declarations. any help is very appreciated.
best regards frank
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Apply Templates, when to , Dimitre Novatchev | Thread | Re: [xsl] how to remove namespace d, Martin Honnen |
Re: [xsl] Apply Templates, when to , David Carlisle | Date | Re: [xsl] Apply Templates, when to , G. Ken Holman |
Month |