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 2002/08/23 20:47:03 UTC
DO NOT REPLY [Bug 11987] New: -
XSLTC: NoSuchMethodError when comparing nodeset to RTF
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=11987>.
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=11987
XSLTC: NoSuchMethodError when comparing nodeset to RTF
Summary: XSLTC: NoSuchMethodError when comparing nodeset to RTF
Product: XalanJ2
Version: CurrentCVS
Platform: All
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: org.apache.xalan.xsltc
AssignedTo: xalan-dev@xml.apache.org
ReportedBy: mkwan@ca.ibm.com
This problem was reported by Vincent Rycx (vincent.rycx@be.unisys.com).
XSLTC compiles the following stylesheet successfully, but produces a
java.lang.NoSuchMethodError at runtime.
Stylesheet:
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html"/>
<xsl:template match = "/">
<xsl:variable name="x">5</xsl:variable>
<out>
<xsl:if test="/doc/num > $x">
num > 5
</xsl:if>
</out>
</xsl:template>
</xsl:stylesheet>
======================================
Input XML:
<doc>
<num> 10 </num>
</doc>
=====================================
If you change the variable declaration by not using RTF, e.g
<xsl:variable name="x" select="5"/>, XSLTC will produce the correct result.