Tested Xalan XSLTC(CVS 20040106 + Patches for last() Bug 24782) with Jrockit
1.4.2 and found:
In the following example only one row tag is processed when there is another
loop inside the 'row' loop.
XML:
<?xml version="1.0" encoding="ISO-8859-1"?>
<grid-group>
<row/>
<row/>
</grid-group>
XSL:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="
http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="ISO-8859-1" doctype-public="-
//W3C//DTD HTML 4.01 Transitional//EN"/>
<xsl:template match="grid-group">
<xsl:for-each select="row">
<tr>
<xsl:for-each select="cell"/>
</tr>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
Output:
<tr></tr>
I cannot reproduce the problem. All VMs will take the same sequence of
bytecodes to execute the transform, if one produces the correct result and one
does not, then the problem is in the VM. Typically, these problems are related
to JIT compilation, but I'm not really familiar with Jrockit so I can't really
say (if there's an option to turn off the JIT, you may want to try that).
I'll wait for your response, but this looks like a WONTFIX. Thanks.