Example
You can use this example to convert data from an XML format to another XML format and then use the output by mapping it to an API request.
XML Input
<?xml version="1.0" encoding="UTF-8"?>
<Sample>
<Test Enable ="False"></Test>
</Sample>
XSLT
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="/">
<xsl:variable name="variable" select="Sample/Test/@Enable"/>
<xsl:if test="contains($variable, 'True')">
<Test Enable="1"/>
</xsl:if>
<xsl:if test="contains($variable, 'False')">
<Test Enable="0"/>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
Sample XML Output
<?xml version="1.0" encoding="UTF-8"?>
<Test Enable="0"/>