| Subject: Re: [xsl] Replacing default namespace From: Scott Sauyet <lists@xxxxxxxxxx> Date: Mon, 02 Jul 2007 15:24:54 -0400 | 
Scott Sauyet wrote:
In any case, a reduced version of the input WSDL is below. I want the output to be exactly the same except for the changes to the root tag:
<definitions targetNamespace="http://my.new.namespace/" xmlns:tns="http://my.new.namespace/"
Here is an XSLT 1.0 stylesheet, I think it does what you want with Saxon 6.5.5:
<ns2:message xmlns:ns2="http://schemas.xmlsoap.org/wsdl/" name="Sessions_OpenRequest"> <ns3:part xmlns:ns3="http://schemas.xmlsoap.org/wsdl/" name="UserName" type="xs:string"/> <ns4:part xmlns:ns4="http://schemas.xmlsoap.org/wsdl/" name="Password" type="xs:string"/> <ns5:part xmlns:ns5="http://schemas.xmlsoap.org/wsdl/" name="StationName" type="xs:string"/> </ns2:message>
   <message name="Sessions_OpenRequest">
      <part name="UserName" type="xs:string"/>
      <part name="Password" type="xs:string"/>
      <part name="StationName" type="xs:string"/>
   </message>| Current Thread | 
|---|
| 
 | 
| <- Previous | Index | Next -> | 
|---|---|---|
| Re: [xsl] Replacing default namespa, Martin Honnen | Thread | [xsl] how to include & url, Garry Searle | 
| Re: [xsl] Testing with MSXML 3.0 or, Abel Braaksma | Date | [xsl] Preventing CDATA output in XH, Brian Koontz | 
| Month |