Created
December 22, 2011 14:55
-
-
Save gmic/1510575 to your computer and use it in GitHub Desktop.
XSLT Transform Soapresponse body and strip off namespacing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" > | |
<xsl:template match="/"> | |
<xsl:apply-templates select="/env:Envelope/env:Body/*"/> | |
</xsl:template> | |
<xsl:template match="@*"> | |
<xsl:attribute name="{local-name()}"><xsl:value-of select="."/></xsl:attribute> | |
<xsl:apply-templates/> | |
</xsl:template> | |
<xsl:template match="*"> | |
<xsl:element name="{local-name()}"> | |
<xsl:apply-templates select="@* | node()"/> | |
</xsl:element> | |
</xsl:template> | |
</xsl:stylesheet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment