EDN Admin
Well-known member
Hi
I am new to XSLT and trying to amend some xml i am receiving via a synchronous webservice.
the header of the return message looks like this...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <br/>
<!-- <br/>
XML Validation Inbound Channel Response <br/>
--> <br/>
<ser-root:createContractResponse xmlns:ser-root="http://ulss29.rrcm.biz/rrcmSAPSourcingContract/ws/createContract" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance <br/>
<BBP_ES_OA_UPDATE xmlns:ns="urn:sap-com:document:sap:rfc:functions <br/>
<ns:BBP_ES_OA_UPDATE.Response><br/>
<CROSSREF><br/>
<ES_MA_NUMBER>contracts.Contract:MA-ICE-00000190</ES_MA_NUMBER>
<br/>
<ES_DOC_TYPE>CTR</ES_DOC_TYPE> <br/>
<ES_MA_NAME>Test 1611-a</ES_MA_NAME> <br/>
<br/>
the XSLT i have written looks like this...
<?xml version="1.0" encoding="UTF-8"?><br/>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ser-root1="http://ulss29.rrcm.biz:5599/rrcmSAPSourcingContract/ws/createContract" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance <br/>
<xslutput method="xml" version="1.0" encoding="UTF-8" indent="no"/><br/>
<xsl:template match="/ser-root1:createContractResponse <br/>
<xsl:copy-of select="*" /> <br/>
</xsl:template><br/>
</xsl:stylesheet><br/>
<br/>
<br/>
This strips out all the nodes and not just the header node - ser-root1:createContractResponse
i am sure i am not asking the impossible and i feel i am close... any pointers would be gratefully received...
thanks
View the full article
I am new to XSLT and trying to amend some xml i am receiving via a synchronous webservice.
the header of the return message looks like this...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <br/>
<!-- <br/>
XML Validation Inbound Channel Response <br/>
--> <br/>
<ser-root:createContractResponse xmlns:ser-root="http://ulss29.rrcm.biz/rrcmSAPSourcingContract/ws/createContract" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance <br/>
<BBP_ES_OA_UPDATE xmlns:ns="urn:sap-com:document:sap:rfc:functions <br/>
<ns:BBP_ES_OA_UPDATE.Response><br/>
<CROSSREF><br/>
<ES_MA_NUMBER>contracts.Contract:MA-ICE-00000190</ES_MA_NUMBER>
<br/>
<ES_DOC_TYPE>CTR</ES_DOC_TYPE> <br/>
<ES_MA_NAME>Test 1611-a</ES_MA_NAME> <br/>
<br/>
the XSLT i have written looks like this...
<?xml version="1.0" encoding="UTF-8"?><br/>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ser-root1="http://ulss29.rrcm.biz:5599/rrcmSAPSourcingContract/ws/createContract" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance <br/>
<xslutput method="xml" version="1.0" encoding="UTF-8" indent="no"/><br/>
<xsl:template match="/ser-root1:createContractResponse <br/>
<xsl:copy-of select="*" /> <br/>
</xsl:template><br/>
</xsl:stylesheet><br/>
<br/>
<br/>
This strips out all the nodes and not just the header node - ser-root1:createContractResponse
i am sure i am not asking the impossible and i feel i am close... any pointers would be gratefully received...
thanks
View the full article