string comparison : very important.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Shiju Rajan

    string comparison : very important.


    Hi,
    How do we compare strings in XSL. I have two strings like (cond1:Or:cond2 )
    and cond1. When I do
    <xsl:if test="//PROPERTY/VALUE = $operand1">
    --------------------
    ------------------
    </xsl:if>

    The comparison is successful and it goes inside the if condition.

    Thanks,
    Shiju,
  • Aguy2die4

    #2
    Re: string comparison : very important.

    you can use the 'or' operator

    <xsl:for-each select="broker| symbol">
    </xsl:for-each>

    tried it with for:each and works .. should work with if as well
    Cheers
    A

    Comment

    Working...