Simple Condition
This document explains how a simple scenario condition works and what XSLT output format it must return.
A condition is an XSLT mapping applied to the source envelope of a step. A simple condition must return true or false in XML format:
<result>
true
</result>Example condition XSLT:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<result>
<xsl:choose>
<xsl:when test="envelope/documents/document[@id='document_id']/field[@name='field_name'] > 0">
true
</xsl:when>
<xsl:otherwise>
false
</xsl:otherwise>
</xsl:choose>
</result>
</xsl:template>
</xsl:stylesheet>Last updated