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

Disable namespace declaration in output XML

Subject: Disable namespace declaration in output XML
From: "Ranjan K. Baisak" <ranjanbaisak@xxxxxxxxx>
Date: Mon, 14 Feb 2005 23:33:09 -0800 (PST)
xsl disable namespaces
My stylesheet generates an XML document. But the xml
contains namespace declarations, which I don't want.
The header part of my stylesheet is:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
	xmlns:exslt="http://exslt.org/common"
	xmlns:java="http://xml.apache.org/xslt/java"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 	<xsl:output method="xml" version="1.0"
encoding="UTF-8" 
	indent="yes"/>

The glimpse of xsl producing xml is:
<reportdetails>
	<xsl:attribute name="name"><xsl:text>Chart
List</xsl:text></xsl:attribute>
	<xsl:attribute name="generated"><xsl:value-of
select="java:java.util.Date.new()"/></xsl:attribute>
	<xsl:attribute name="user"><xsl:value-of
select="$username"/></xsl:attribute>
</reportdetails>

 and the output is:
<?xml version='1.0' encoding='UTF-8' ?>
<reportdetails
xmlns:java="http://xml.apache.org/xslt/java"
xmlns:exslt="http://exslt.org/common" name="Chart
List" generated="Tue Feb 15 13:00:54 GMT+05:30 2005"
user=""/>

I don't want namespace declaration in the xml file.
Any help would be appreciated.
regards,
Ranjan


		
__________________________________ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 

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.