[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: how to prevent adding xmlns attribute

Subject: Re: how to prevent adding xmlns attribute
From: "M. David Peterson" <m.david@xxxxxxxxxx>
Date: Thu, 11 Nov 2004 07:14:39 -0800
xmlns xsl
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" version="1.0" exclude-result-prefixes="exsl">



Dusan Zatkovsky wrote:

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.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.