xsl-list
[Top] [All Lists]

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

2010-10-07 16:04:55
 On 10/7/2010 2:42 PM, sudheshna iyer wrote:
<xsl:when test="string-length($VAR1) < $VAR3">  => Doesn't work

How do I achieve this?

Because of XML markup rules, you cannot use < directly in an attribute
value.
Instead of < you must use the character entity &lt; :

<xsl:when test="string-length($VAR1) &lt; $VAR3">

Lars


--~------------------------------------------------------------------
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>