<xsl:template match="CONSTRAINT">
<xsl:variable name="cc">
<xsl:apply-templates select="CC"/>
</xsl:variable>
<xsl:variable name="sel" select="SELECTOR/@SELEXP"/>
<xsl:variable name="pred">
<xsl:apply-templates select="CC/VARIABLE" mode="pred"/>
<xsl:variable>
<xsl:comment>
.....................NEW CONSTRAINT.....................
</xsl:comment>
<my:template mode="constraint{count(preceding-sibling::*)+1}"
match="{$sel}{$pred}">
<my:if test="not({$cc})">
<err-message>
<xsl:apply-templates select="ACTION"/>
</err-message>
</my:if>
</my:template>
<my:template match="text()" priority="-1"
mode="constraint{count(preceding-sibling::*)+1}">
<!-- strip characters -->
</my:template>
</xsl:template> |