Skip to Content
0
Jun 18, 2020 at 05:08 PM

XSLT Mapping in sap cpi

912 Views Last edit Jun 18, 2020 at 05:10 PM 3 rev

HI All,

Am trying to do sorting in the xml payload by using xslt but am not getting were am doing wrong.

XSLT Code:

<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="*/wfRequestNav/wfRequestId"> <xsl:apply-templates> <xsl:sort select="@wfRequestId" order="descending" data-type="number" /> </xsl:apply-templates> </xsl:template> </xsl:stylesheet>

Input XML i have attached can you let me know where am getting wrong.

input.txt

Regards,
Sandhya

Attachments

input.txt (7.2 kB)