Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > change namespace using XSLT

Reply
Thread Tools

change namespace using XSLT

 
 
harrazh harrazh is offline
Junior Member
Join Date: Aug 2008
Posts: 1
 
      08-25-2008
He Guys,
I'm new to the XSLT , so u might find my question very stupid, but please bare with me

I have a soap request with a namespace to qualify the function required, I need to change the namespace so that the webservice won't reject it, please see below

the request will look like the following example
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:q0="http://address.com" >
<soapenv:Body>
<q0:findByLocation>
<city></city>
<state>NC</state>
</q0:findByLocation>
</soapenv:Body>
</soapenv:Envelope>

I want it to be transformed into

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:q0="http://east.address.com" >
<soapenv:Body>
<q0:findByLocation>
<city></city>
<state>NC</state>
</q0:findByLocation>
</soapenv:Body>
</soapenv:Envelope>

I only need to change the q0 namespace
how can I do that?

another thing, I need a book name or a good reference to teach me XSL transformation
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple XSLT Transforms using a Controller XSLT sneill@mxlogic.com XML 2 10-19-2005 11:00 AM
using namespace available outisde namespace Andrew Ward C++ 5 07-25-2005 06:32 AM
Is 'using namespace std;' valid without 'namespace std {};' first? Petter Reinholdtsen C++ 9 11-29-2004 03:28 PM
Reaching into the default namespace when using another namespace. Jason Heyes C++ 1 11-19-2004 02:36 AM
Help:Why can't I use namespace System.Web? It is said that this namespace doesn't exist. But it should exist. ASP .Net 1 07-29-2003 04:31 PM



Advertisments