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

Strip Soap namespace?


soap namespace
Hello, I've just joined the list so I appologize if I ask a question that has already been addressed.  I have been reading the w3c XSL pages and can't find an answer. I wonder if there is a short answer to my problem...
 
I have an xml input document as follows:
<?xml version="1.0" encoding="UTF-8"?>
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"><soap-env:Header/><soap-env:Body><justiceXML><documentDescriptor type="request" class="OTrackNameListRequest"/><payload><person><personName><firstName>MICHAEL</firstName><lastName>MOLEN</lastName><fullName>MICKEY MOLEN</fullName></personName><personDescription><sex>Male</sex><birthDate>1910-08-01</birthDate></personDescription></person></payload></justiceXML></soap-env:Body></soap-env:Envelope>
I am trying get just the soap body elements out via XSLT, but I always get the soap ns on the justiceXML element.  My style sheet is as follows:

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsl=http://www.w3.org/1999/XSL/Transform
exclude-result-prefixes="soap-env">
<xsl:output method="xml" />
  <xsl:template match="justiceXML">
  <xsl:copy-of select="." />
</xsl:template>
</xsl:stylesheet>

and my output:
<?xml version="1.0" encoding="UTF-8"?>
<justiceXML xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"><documentDescriptor class="OTrackNameListRequest" type="request"/><payload><person><personName><firstName>MICHAEL</firstName><lastName>MOLEN</lastName><fullName>MICHAEL MOLEN</fullName></personName><personDescription><sex>Male</sex><birthDate>1960-07-11</birthDate></personDescription></person></payload></justiceXML>
 
Question:  is there a way to supress the soap namespace from the output? Using  exclude-result-prefixes doesn't make any difference.

Paul Coleman
paul.coleman@a...

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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.