[xsl] Namespace being carried over

Subject: [xsl] Namespace being carried over
From: "James Paul" <jpaul@xxxxxxxxxxx>
Date: Mon, 23 Aug 2004 10:06:43 -0500
Here is my xslt:

<?xml version = "1.0" encoding = "UTF-8"?>
<xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform";
version = "1.0" xmlns:ns1 = "http://www.quadrem.com/soap/";
exclude-result-prefixes = "ns1 ns2 Output" xmlns:ns2 =
"http://schemas.xmlsoap.org/soap/envelope/"; xmlns:Output =
"java://com.wm.pkg.xslt.extension.Output">

<xsl:output method = "xml" encoding = "utf-8" indent = "yes" />
<xsl:template match = "*">
		<xsl:copy-of select =
"ns2:Body/ns1:Body/ns1:Message-Body/*"/>
</xsl:template>
</xsl:stylesheet>

Here is the result:

<?xml version="1.0" encoding="utf-8"?>

<Order xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:Q-ENV="http://www.quadrem.com/soap/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>

					<OrderHeader>

						<OrderNumber>


<BuyerOrderNumber>DMMV_C84131</BuyerOrderNumber>

						</OrderNumber>


<OrderIssueDate>20040818T11:10:28-03:00</OrderIssueDate>

						<OrderReferences>


The problem is this:
<Order xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:Q-ENV="http://www.quadrem.com/soap/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>

Sould look like this:
<Order>

I don't want all of the namespace information after the Order the tag.

Can anyone help me with this.

Thanks,
James

Current Thread