This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: or condition


To add to what David says,

At 06:08 AM 8/2/2002, subbu@boltblue.com wrote:
and one more question i wanted to ask is that.. is there a way to do some stunt
like
<xsl:if test="$b = '10' and ($a = ('1' or '2'or '3' or '4'))">
If you really do want the value of $a tested as a string not a number, you can do

test="$b='10' and contains('1~2~3~4', $a)"

but this won't pass if you want to allow $a to be, say, '1.0' (then you want to test equality as a number), and it will pass if $a is ever '~' or another valid substring of the test string.

Cheers,
Wendell



======================================================================
Wendell Piez mailto:wapiez@mulberrytech.com
Mulberry Technologies, Inc. http://www.mulberrytech.com
17 West Jefferson Street Direct Phone: 301/315-9635
Suite 207 Phone: 301/315-9631
Rockville, MD 20850 Fax: 301/315-8285
----------------------------------------------------------------------
Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]