xsl-list
[Top] [All Lists]

Re: algorithm for alternation [faked-from]

2003-08-20 11:08:46
<xsl:choose>
<xsl:when test=".[position() mod 2 = 1">

This is illegal syntax.

And this is also illegal:

<xsl:when test=".[position() mod 2 = 1]">

The syntactically correct way of expressing what you meant is:

 <xsl:when test="position() mod 2 = 1">
   <!-- Do whatever is necessary here -->
 </xsl:when>


=====
Cheers,

Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL




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



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