xsl-list
[Top] [All Lists]

[xsl] Less than symbol in xsl:if or xsl:when

2010-10-07 14:42:18


The following stmt works, but when I replace > with <, it doesn't work. I am 
compiling with xmlspy with xslt1.0
<xsl:when test="string-length($VAR1) > $VAR2">  => Works

<xsl:when test="string-length($VAR1) < $VAR3">  => Doesn't work

My main goal is to  check whether length of VAR2 is in between 2 numbers.. like 

string-length($VAR1) >= $VAR2and string-length($VAR1) <= $VAR3

How do I achieve this?



      

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>