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





------- Additional Comments From [EMAIL PROTECTED]  2003-11-18 19:04 -------
The problem exists when the last() function is used inside for-each and the 
expression of for-each is a variable of a nodeset. A simple stylesheet to 
reproduce this problem:

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; >
 <xsl:template match="/">
        <xsl:variable name="action-set" select="model/action" /> 
        <xsl:for-each select="$action-set">
                <xsl:value-of select="text()" />
                <xsl:if test="not(position()=last())">;</xsl:if>
        </xsl:for-each>
 </xsl:template>
</xsl:stylesheet>

expected output:
frame.session.login();frame.session.login2();frame.session.doSettings()

xsltc output:
frame.session.login();

Reply via email to