You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2003/10/09 20:06:53 UTC
DO NOT REPLY [Bug 23047] -
[XSLTC] stange behaviour with java extensions in XSLTC
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=23047>.
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=23047
[XSLTC] stange behaviour with java extensions in XSLTC
jycli@ca.ibm.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
------- Additional Comments From jycli@ca.ibm.com 2003-10-09 18:06 -------
I can't reproduce the problem you specified. The test case works for both xalan
interpreted and xsltc. The output is "1 2".
XML:
<?xml version="1.0" encoding="UTF-8"?>
<Test>
<Num>1</Num>
<Num>2</Num>
</Test>
XSLT:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:java="http://xml.apache.org/xalan/java"
exclude-result-prefixes="java">
<xsl:variable name="v" select="java:java.util.Vector.new()"/>
<xsl:template match="/">
<xsl:for-each select="//Num">
<xsl:variable name="tmp" select="java:add($v, 'hello')"/>
<xsl:value-of select="java:size($v)" /><xsl:text> </xsl:text>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>