on 11-21-2006 12:39 PM
hello
I don't know whether this would be appropriate in this forum but one of my interface has XSLT mappings and we have to add certain conditions for some tags to get generated.
I checked XSLT APIs and found out <xsl:if> tag and my one condition works fine.
e.g. <xsl:if test="$flg_type='xyz' >
<tags to be generated>
</xsl:if>
But now the requirement is like those tags should get generated when flg_type = 'xyz' or flg_type = 'abc' and 5 such conditions.
Does anyone know how to add "OR" or "AND" condition inside <xsl:if>
Thanks in advance.
Regards
Rajeev
hi,
did you try:
<xsl:if test="($flg_type='xyz') or ($flg_type='abc') " >
Regards,
michal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
AFAIK, this works with
[code]<xsl:if test="$flg_type='xyz' OR $anotherOne='abc' OR $third='123' ">
...
</xsl:if>[/code]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Looks good
Ref: http://msdn2.microsoft.com/en-gb/library/ms256081.aspx (only small letters form the syntax)
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.