Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > string comparison : very important.

Reply
Thread Tools

string comparison : very important.

 
 
Shiju Rajan
Guest
Posts: n/a
 
      12-12-2004

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,
 
Reply With Quote
 
 
 
 
Aguy2die4
Guest
Posts: n/a
 
      12-14-2004
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Very very very basic question Peter C Programming 14 02-14-2005 09:46 AM
very very very long integer shanx__=|;- C Programming 19 10-19-2004 03:55 PM
very very very long integer Abhishek Jha C Programming 4 10-17-2004 08:19 AM
Quick Book file access very very very slow Thomas Reed Computer Support 7 04-09-2004 08:09 PM
very Very VERY dumb Question About The new Set( ) 's Raymond Arthur St. Marie II of III Python 4 07-27-2003 12:09 AM



Advertisments