This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Semantic of last() in the guard of a for-each
- To: xsl-list at lists dot mulberrytech dot com
- Subject: [xsl] Semantic of last() in the guard of a for-each
- From: Claudio Sacerdoti Coen <sacerdot at CS dot UniBO dot IT>
- Date: Sun, 4 Nov 2001 15:32:52 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi,
is it right that the two follwing XSLT fragments should have the
same semantic? This seems to be untrue using some versions of
some processors...
<xsl:for-each select="*[position() > 1 and last() > position()]">
<xsl:variable name="last" select="count(*)"/>
<xsl:for-each select="*[position() > 1 and $last > position()]">
Thanks in advance,
C.S.C.
--
----------------------------------------------------------------
Real name: Claudio Sacerdoti Coen
PhD Student in Computer Science at University of Bologna
E-mail: sacerdot@cs.unibo.it
http://caristudenti.cs.unibo.it/~sacerdot
----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list