i need some help about check validation for some field. the plan was, when i have some validation using choose when function on some template. i need check all validation, and when 1 field validation was fail, 1 node will have notification with "RCJT". i was have made the template like this:
<xsl:template name="errors">
<xsl:variable name="path" select="*"/>
<xsl:variable name="ACPT" select="'ACTC'"/>
<xsl:variable name="RCJT" select="'RCJT'"/>
<xsl:choose>
<xsl:when test="contains(*,'$errorC') or contains(*,'$errorCdate') or contains(*,'$errorCdata')">
<xsl:value-of select="$RCJT" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$ACPT" />
</xsl:otherwise>
</xsl:choose>
</xsl:template>
the notification from template error was going to this field
<ns2:TxSts><xsl:apply-templates select="errors"/></ns2:TxSts>
list custom error for every validation when fail:
<xsl:variable name="errorC"><ns2:AddtlInf>Validation Format Error</ns2:AddtlInf></xsl:variable><xsl:variable name="errorCdate"><ns2:AddtlInf>Validation Format Date Error</ns2:AddtlInf></xsl:variable>
<xsl:variable name="errorCdata"><ns2:AddtlInf>Validation Format Data Not Found</ns2:AddtlInf></xsl:variable>