Abel Braaksma wrote:
sum(
for $i in $x[position() mod 2 = 1] return $i * 3,
for $i in $x[position() mod 2 = 0] return $i,
= number(substring(., string-length(.) - 1, 1))
I must be sleepy or something. "for $i in $x[position() mod 2 = 0]
return $i" is the same as " $x[position() mod 2 = 0]" of course ;) and
that comma should be a right parenthesis:
sum(
for $i in $x[position() mod 2 = 1] return $i * 3,
$x[position() mod 2 = 0])
= number(substring(., string-length(.) - 1, 1))
--~------------------------------------------------------------------
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>
--~--