[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Namespace being carried over
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|