xml - XSLT: adding namespaces correctly -
i have soap response 1 of processing rules as:
<soap-env:envelope> <soap-env:body> <ns1:functionresponse> <ns1:functionresponse> <functionreturn> <responsecall> <response /> <success /> <errordesc/> </responsecall> </functionreturn> </ns1:functionresponse> </ns1:functionresponse> </soap-env:body> </soap-env:envelope>
and want convert below using xslt.
<soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/xmlschema" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"> <soapenv:header/> <soapenv:body> <wsq:functionresponse xmlns:wsq="http://service.test.com"> <functionreturn> <responsecall> <response /> <success /> <errordesc/> </responsecall> </functionreturn> </wsq:functionresponse> </soapenv:body> </soapenv:envelope>
can suggest way achieve this?
note: few xsl transformations have tried getting 'the prefix "soap-env" element "soap-env:envelope" not bound.'
Comments
Post a Comment