XSL - Multiple conditions in the same IF-END IF statement
Hi,I have created the following block of XSL code
<?if:D_TYPE_TEXT=/NUMCAPPLAN/CP_TEXT5?>
<?if:D_PERIOD2>100?>
<xsl:attribute
xdofo:ctx="block" name="background-color">red
</xsl:attribute>
<?end if?>
<?end if?>
I would like to know if the logic can be represented in a single IF-END IF statement, like below, which is not working (in an RTF template)
<?if:D_PERIOD2>100 AND D_TYPE_TEXT=/NUMCAPPLAN/CP_TEXT5?>
<xsl:attribute
xdofo:ctx="block" name="background-color">red
</xsl:attribute>
<?end if?>
I would like to know if this is possible and what the correct syntax is.
Thanks
Sanjay
<?if:D_TYPE_TEXT=/NUMCAPPLAN/CP_TEXT5?>
<?if:D_PERIOD2>100?>
<xsl:attribute
xdofo:ctx="block" name="background-color">red
</xsl:attribute>
<?end if?>
<?end if?>
I would like to know if the logic can be represented in a single IF-END IF statement, like below, which is not working (in an RTF template)
<?if:D_PERIOD2>100 AND D_TYPE_TEXT=/NUMCAPPLAN/CP_TEXT5?>
<xsl:attribute
xdofo:ctx="block" name="background-color">red
</xsl:attribute>
<?end if?>
I would like to know if this is possible and what the correct syntax is.
Thanks
Sanjay
0