I have this input xml:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<out:ServiceResponse xmlns:out="http://test.me/datatypes">
<out:Parties>
<out:Party>
<out:Field1>Value1</out:Field1>
<out:Field2>Value2</out:Field2>
</out:Party>
</out:Parties>
</out:ServiceResponse>
</soapenv:Body></soapenv:Envelope>
And this XSLT defined:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes" encoding="UTF-8"/>
<xsl:template match="*[local-name()='elementName']">
<Entities>
<xResults>
<xsl:for-each select="ServiceResponse/Parties/Party">
<aParty>
<Field1Transformed>
<xsl:value-of select="Field1"/>
</Field1Transformed>
<Field2Transformed>
<xsl:value-of select="Field2"/>
</Field2Transformed>
</aParty>
</xsl:for-each>
</xResults>
</Entities>
</xsl:template></xsl:stylesheet>
But when it is applied the output is a html instead of the required xml.
For my use case I need to ignore the namespaces. I can't reference "out:" or any form of placeholder over and over again.
Many thanks.