OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] Strip Soap namespace?

[ Lists Home | Date Index | Thread Index ]

[Paul Coleman]

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:
...
and my output:
<?xml version="1.0" encoding="UTF-8"?>
<justiceXML
xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/";><documentDescript
or class="OTrackNameListRequest"
type="request"/><payload><person><personName><firstName>MICHAEL</firstName><
lastName>MOLEN</lastName><fullName>MICHAEL
MOLEN</fullName></personName><personDescription><sex>Male</sex><birthDate>19
60-07-11</birthDate></personDescription></person></payload></justiceXML>

[Tom P]

Notice that the namespace declaration does not apply to any element in the
stylesheet output (none of them are prefixed), so its presence will do
nothing to change your subsequent processing.  In fact, because you are not
matching on that namespace nor using it in the output, you could omit its
declaration from the xsl:stylesheet element and get the same result.






 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS