[xsl] how to prevent adding xmlns attribute

Subject: [xsl] how to prevent adding xmlns attribute
From: Dusan Zatkovsky <zatkovsky@xxxxxxxxxxxx>
Date: Thu, 11 Nov 2004 16:10:24 +0100
Hi.

I have one question:

xml:
-----
<root>
	<lama/>
</root>


xsl:
-----
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
xmlns:exsl="http://exslt.org/common"; version="1.0">
	<xsl:output method="xml"/>

	<xsl:variable name="dataVar">
		<root>
			<data>123456</data>
		</root>
	</xsl:variable>

	<xsl:template match="/"><xsl:apply-templates></xsl:template>

	<xsl:template match="lama">
		<lama>
			<xsl:value-of select="exsl:node-set($dataVar)/root/data"/>
		</lama>
	</xsl:template>

</xsl:stylesheet>


output:
-------
<lama xmlns:exsl="http://exslt.org/common";>12345</lama>


I need to remove namespace from 'lama' tag:
<lama>12345</lama>

How to do this?

I am using XalanC.

Thanks.

-- 


Dusan Zatkovsky

Current Thread