xml - XSLT For Namespaces -


i know there lot of posts using xslt 1.0 change namespaces haven't gotten of them work. perhaps it's processor i'm using?

i've tried both http://www.freeformatter.com/xsl-transformer.html , http://www.online-toolz.com/tools/xslt-transformation.php test out xslt.

anyhow, have xml:

<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">    <soapenv:body>       <ns1:getactivesuppliersresponse soapenv:encodingstyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://webservice">          <getactivesuppliersreturn soapenc:arraytype="ns2:asl.webservice.supplierdto[3]" xsi:type="soapenc:array" xmlns:ns2="http://rpc.xml.coldfusion" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">             <getactivesuppliersreturn href="#id0"/>             <getactivesuppliersreturn href="#id1"/>             <getactivesuppliersreturn href="#id2"/>          </getactivesuppliersreturn>       </ns1:getactivesuppliersresponse>       <multiref id="id0" soapenc:root="0" soapenv:encodingstyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns3:asl.webservice.supplierdto" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns3="http://rpc.xml.coldfusion">          <asl_status xsi:type="xsd:string">archived</asl_status>          <zip xsi:type="xsd:string">11735</zip>       </multiref>       <multiref id="id2" soapenc:root="0" soapenv:encodingstyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns4:asl.webservice.supplierdto" xmlns:ns4="http://rpc.xml.coldfusion" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">          <asl_status xsi:type="xsd:string">archived</asl_status>          <zip xsi:type="xsd:string">92880</zip>       </multiref>       <multiref id="id1" soapenc:root="0" soapenv:encodingstyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns5:asl.webservice.supplierdto" xmlns:ns5="http://rpc.xml.coldfusion" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">          <asl_status xsi:type="xsd:string">archived</asl_status>          <zip xsi:type="xsd:string">91355</zip>       </multiref>    </soapenv:body> </soapenv:envelope> 

i'm trying change namespaces of http://rpc.xml.coldfusion http://defaultnamespace , instances of asl.webservice.supplierdto webservice.supplierdto, including arraytype.

so resulting xml like:

<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">    <soapenv:body>       <ns1:getactivesuppliersresponse soapenv:encodingstyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://webservice">          <getactivesuppliersreturn soapenc:arraytype="ns2:webservice.supplierdto[3]" xsi:type="soapenc:array" xmlns:ns2="http://defaultnamespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">             <getactivesuppliersreturn href="#id0"/>             <getactivesuppliersreturn href="#id1"/>             <getactivesuppliersreturn href="#id2"/>          </getactivesuppliersreturn>       </ns1:getactivesuppliersresponse>       <multiref id="id0" soapenc:root="0" soapenv:encodingstyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns3:webservice.supplierdto" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns3="http://defaultnamespace">          <asl_status xsi:type="xsd:string">archived</asl_status>          <zip xsi:type="xsd:string">11735</zip>       </multiref>       <multiref id="id2" soapenc:root="0" soapenv:encodingstyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns4:webservice.supplierdto" xmlns:ns4="http://defaultnamespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">          <asl_status xsi:type="xsd:string">archived</asl_status>          <zip xsi:type="xsd:string">92880</zip>       </multiref>       <multiref id="id1" soapenc:root="0" soapenv:encodingstyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns5:webservice.supplierdto" xmlns:ns5="http://defaultnamespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">          <asl_status xsi:type="xsd:string">archived</asl_status>          <zip xsi:type="xsd:string">91355</zip>       </multiref>    </soapenv:body> </soapenv:envelope> 

can me come xslt transformation mentioned above?


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -