string comparison : very important.

Discussion in 'XML' started by Shiju Rajan, Dec 12, 2004.

  1. Shiju Rajan

    Shiju Rajan Guest

    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,
    Shiju Rajan, Dec 12, 2004
    #1
    1. Advertising

  2. Shiju Rajan

    Aguy2die4 Guest

    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
    Aguy2die4, Dec 14, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Raymond Arthur St. Marie II of III

    very Very VERY dumb Question About The new Set( ) 's

    Raymond Arthur St. Marie II of III, Jul 23, 2003, in forum: Python
    Replies:
    4
    Views:
    452
    Raymond Hettinger
    Jul 27, 2003
  2. shanx__=|;-

    very very very long integer

    shanx__=|;-, Oct 16, 2004, in forum: C Programming
    Replies:
    19
    Views:
    1,594
    Merrill & Michele
    Oct 19, 2004
  3. Abhishek Jha

    very very very long integer

    Abhishek Jha, Oct 16, 2004, in forum: C Programming
    Replies:
    4
    Views:
    409
    jacob navia
    Oct 17, 2004
  4. Peter

    Very very very basic question

    Peter, Feb 8, 2005, in forum: C Programming
    Replies:
    14
    Views:
    500
    Dave Thompson
    Feb 14, 2005
  5. olivier.melcher

    Help running a very very very simple code

    olivier.melcher, May 12, 2008, in forum: Java
    Replies:
    8
    Views:
    2,248
Loading...

Share This Page