Skip to Content
0
Mar 22, 2019 at 12:26 AM

assign XML to property variable in HCI

684 Views Last edit Mar 22, 2019 at 12:27 AM 2 rev

Hi Guys,

I went through the blocks which tells how to assign property from XSLT in HCI.

However I want to know how can we do some transformation in XSLT and then assign that

output to the property variable in HCI.

<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
                xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
                xmlns:hci="http://sap.com/it/">
                <xsl:param name="exchange"/>
  <xsl:template match="/">
    <Emp>
      <xsl:for-each select="/Employees/Employee">
        <EmpDetails>
          <CEE_ID>
            <xsl:value-of select="CEE_ID"/>
          </CEE_ID>
        </EmpDetails>
      </xsl:for-each>
    </Emp>
    <xsl:value-of select="hci:setProperty($exchange, 'EMP', <HOW TO ADD XSLT OUTPUT HERE ???> />
  </xsl:template>
</xsl:stylesheet>

Thanks

Yatan