DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24782>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24782

new in 2.5.2 with xsltc:loop breaks when function last() is used inside

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|with xsltcloop breaks when  |new in 2.5.2 with xsltc:loop
                   |function last() is used     |breaks when function last()
                   |inside                      |is used inside



------- Additional Comments From [EMAIL PROTECTED]  2003-11-18 12:56 -------
Data loss with Trax (xsltc) transformer 2.5.2 when last() Function is used 
inside a
xsl:for-each loop. Interpreter transformer does is fine.

Tested with win2k, xp, jdk1.4.2_2, Jrockit, Xalan 2.5.2, Xerces 2.4.0 and cvs
Xalan 2.5.1 doesn't show this behavoir.


xsl fragment:

<xsl:for-each select="$action-set2">
        <xsl:value-of select="text()"/>
        <!-- Data loss with trax transformer when last() is used in loop
        reaches the xsl:message in Trax only one time.
        same behavior with <xsl:value-of select="last()"/> instead xsl:if --> 
        
        <xsl:if test="not(position()= last())">;</xsl:if>

        <!-- Message for Testing
        <xsl:message>after test position:<xsl:value-of select="position()"/>  
                        last:<xsl:value-of select="last()"/></xsl:message>--> 
      </xsl:for-each>

Differece between interpreter and compiler:

Result of comparing the files tests/variable_test/output/index-example.html 
and tests/variable_test/output/index_Test variable_test_1.html
Date/time: Tue Nov 18 13:42:11 CET 2003
Libs: Notice: this are the versions of the cp used for the Compare-call
who generated this file. For your interest only, when the Transformer used the 
same cp.
xalan:  Xalan Java 2.5.2
xerces: Xerces-J 2.4.0
java version "1.4.2_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_02-b03)
Java HotSpot(TM) Client VM (build 1.4.2_02-b03, mixed mode)
The files have differences in context!
Non-recoverable differences found.
--------------------------------------
Differences in content:

N# 1 !Difference in content!
Description:
text value
Differences:
XPath in Control: /body[1]/text()[1]
Value: submitActionSet( 'main-thread;main','frame.session.login
();frame.session.login2();frame.session.doSettings()')
XPath in Text: /body[1]/text()[1]
Value: submitActionSet( 'main-thread;main','frame.session.login();')

Reply via email to