This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
suppress soap namespace?
- From: "Paul Coleman" <paul dot coleman at averyinstitute dot com>
- To: <XSL-List at lists dot mulberrytech dot com>
- Date: Tue, 30 Jul 2002 08:52:28 -0600
- Subject: [xsl] suppress soap namespace?
- Reply-to: xsl-list at lists dot mulberrytech dot com
I have a soap 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>
</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 (the first body element). My style
sheet is as follows:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" 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 is what I want but without the soap ns:
<?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>
</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@averyinstitute.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list