I've searched and searched and cannot figure it out.
I have a SOAP service that returns the following document:
I need to transform this type of document(and several others) and get rid of the Namespace declaration) to below:
The following XSLT does not work
Thanks in advance!
I have a SOAP service that returns the following document:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<CallCreateResponse xmlns="[URL unfurl="true"]http://www.vendor.com.au/IN_RULES80/API">[/URL]
<CallCreateResult>
<nCallNumber>0</nCallNumber>
<sMessage>Please Delete Name Space</sMessage>
<Ret>NAME_SPACE_ERROR</Ret>
</CallCreateResult>
</CallCreateResponse>
I need to transform this type of document(and several others) and get rid of the Namespace declaration) to below:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<CallCreateResponse>
<CallCreateResult>
<nCallNumber>0</nCallNumber>
<sMessage>Please Delete Name Space</sMessage>
<Ret>NAME_SPACE_ERROR</Ret>
</CallCreateResult>
</CallCreateResponse>
The following XSLT does not work
Code:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="[URL unfurl="true"]http://www.w3.org/1999/XSL/Transform"[/URL] version="1.0">
<xsl:output method="xml" indent="yes" encoding="UTF-8"/>
<xsl:template match="/*[local-name()='CallCreateResponse']">
<CallCreateResponse>
<xsl:copy-of select="/*[local-name()='CallCreateResponse']/*"/>
</CallCreateResponse>
</xsl:template>
</xsl:stylesheet>
Thanks in advance!