I have to split the incoming soap request into 3 parts copying the input content as it is and store each part into 3 different variables. Below is my input request:
This will parse your results (I think into what you want, but not certain)
<?xml version="1.0"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:a="http://tempuri.org/"
xmlns:n0="http://sap.com/xi/SAPGlobal20/Global">
<!-- extract just the first child of the body -->
<xsl:template match="/">
<xsl:apply-templates select="/soap-env:Envelope/soap-env:Body/n0:BusinessPartnerSUITEBulkReplicateRequest/*" />
</xsl:template>
<!-- identity template, but dropping namespace declarations not used
directly by this element -->
<xsl:template match="@*|node()">
<xsl:copy copy-namespaces="no">
<xsl:apply-templates select="@*|node()" />
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
How to split xml into 3 outputs using XSLT ?
Hi,
I have to split the incoming soap request into 3 parts copying the input content as it is and store each part into 3 different variables. Below is my input request:
Here is my xslt which I tried:
I can't comment on the file part as never used the result-document, but your problem is most likely namespace and paths.
I can highly recommend this site for playing around with xslt https://xsltfiddle.liberty-development.net/
This will parse your results (I think into what you want, but not certain)
is working on a reply...