SXI Forum

A place to collect usefull tips, tricks and implementation strategies.

You are not logged in.

#1 22-11-2018 07:18:51

Registered: 20-11-2018
Posts: 148

Stylesheets to remove soapenvelope for SOAPWebService


<xsl:stylesheet version="1.0" xmlns:xsl="" xmlns:soapenv="" exclude-result-prefixes="soapenv">
    <xsl:strip-space elements="*"/>
    <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
    <!-- remove all elements in the soapenv namespace -->
    <xsl:template match="soapenv:*">
        <xsl:apply-templates select="node()"/>
	<!-- for the remaining elements (i.e. elements in the default namespace) ... -->
    <xsl:template match="*">
        <!-- ... create a new element with similar name in no-namespace -->
        <xsl:element name="{local-name()}">
            <xsl:apply-templates select="@*|node()"/>
	<!-- convert attributes to elements -->
    <xsl:template match="@*">
        <xsl:element name="{local-name()}">
            <xsl:value-of select="." />


Board footer

Powered by FluxBB