Namespaces, SOAP and XSLT
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Juha_Siltanen
Posted On:   Tuesday, March 18, 2003 05:24 AM

I am performing XSLT to a SOAP message and the output is another SOAP meage, slightly different in content. I'll include here the relevant parts concerning my question. In the result SOAP, some tag's have a namesoace declared even though no namespace is defined in the source documetn for those specific tags. The source: <?xml version="1.0" encoding="UTF-8"?> xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"> 12345 Somewhere Somewhere else 1 active    More>>

I am performing XSLT to a SOAP message and the output is another SOAP meage, slightly different in content. I'll include here the relevant parts concerning my question. In the result SOAP, some tag's have a namesoace declared even though no namespace is defined in the source documetn for those specific tags.

The source:

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


xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">





12345

Somewhere

Somewhere else












1

active

someUser

myPassword












The XSL:

<?xml version="1.0"?>








xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">



















//*/*['Body']/*/*['Products']/*[1]/*[not(name()='password' or name()='username')]"/>














The result:

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















12345



active



As it is depicted in the presented codes, why is this
url presented in the output? I haven't defined it to
appear there (or have I?).

Thanks, I really apprechiate all the help I get :-)

-Juha-

   <<Less

Re: Namespaces, SOAP and XSLT

Posted By:   Roseanne_Zhang  
Posted On:   Tuesday, March 18, 2003 06:35 AM

Because XSLT is doing exact the right thing! In your source, everything in your tag belong to "http://why.is.this.url.repeated.in.the.result" name space. Therefore, those tags in your result should belong to the same namespace.
About | Sitemap | Contact