Quantcast
Channel: SCN : Unanswered Discussions - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 6719

Help on XSLT mapping

$
0
0

Hi Everyone,

 

      I am very new to XSLT mapping.I tried one scenario to understand the concept,but at the target side the nodes are not getting genearted.

Please find the belo code:

<?xml version="1.0" encoding="UTF-8" ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
<xsl:output method="xml" indent="yes"/>
<xsl:template match="/">
<test>
<xsl:for-each select="test/Data">
<Data>
<xsl:variable name="VPOnumber" select ="POnumber"/>
<xsl:variable name="Vdeliverynumber" select="deliverynumber"/>
<POnumber>
<xsl:value-of select = " concat($VPOnumber,' ',$Vdeliverynumber)"/>
</POnumber>
<deliverynumber>
<xsl:value-of select = "deliverynumber"/>
</deliverynumber>
<statuscode>
<xsl:value-of select = "statuscode"/>
</statuscode>
<xsl:for-each select="Data/Product">
<Product>
<productid>
<xsl:value-of select = "productid"/>
</productid>
<quantity>
<xsl:value-of select = "quantity"/>
</quantity>
</Product>
</xsl:for-each>
</Data>
</xsl:for-each>
</test>
</xsl:template>
</xsl:stylesheet>

 

Also find the Operation mapping excecution.

 

test1.png

Please could anyone help me where it went wrong.

Thanks in advance


Viewing all articles
Browse latest Browse all 6719

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>