simple stylesheet runs fine with Xalan but gives runtime error with XSLTC:
Incompatible type for getting or setting field
-------------------------------------------------------------------------------------------------------------------------
Key: XALANJ-2478
URL: https://issues.apache.org/jira/browse/XALANJ-2478
Project: XalanJ2
Issue Type: Bug
Security Level: No security risk; visible to anyone (Ordinary problems in
Xalan projects. Anybody can view the issue.)
Components: XSLTC
Affects Versions: 2.7.1
Environment: Sun Java JRE 1.5 on German Windows XP Professional SP 3
Reporter: Martin Honnen
The primary input document of the transformation is as follows:
<root>
<list>
<item>
<id>item1</id>
</item>
<item>
<id>item2</id>
</item>
<item>
<id>item3</id>
</item>
</list>
</root>
A secondary XML input ('test2009011303.xml') is as follows:
<root>
<exclusion-list>
<id>item2</id>
</exclusion-list>
</root>
The stylesheet is as follows:
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="text"/>
<xsl:template match="/">
<xsl:value-of
select="count(root/list/item[not(id =
document('test2009011303.xml')/root/exclusion-list/id)])"/>
</xsl:template>
</xsl:stylesheet>
When run from the command line with Xalan 2.7.1 without option -xsltc the
stylesheet correctly outputs "2".
When run from the command line with Xalan 2.7.1 with option -xsltc the
following error is reported:
(Position des Fehlers unbekannt)XSLT-Fehler (java.lang.VerifyError): (class:
test2009011302Xsl$0, method: test signature:
(IIIILorg/apache/xalan/xsltc/runtime/AbstractTranslet;Lorg/apache/xml/dtm/DTMAxisIterator;)Z)
Incompatible type for getting or setting field
Exception in thread "main" java.lang.RuntimeException: (class:
test2009011302Xsl$0, method: test signature:
(IIIILorg/apache/xalan/xsltc/runtime/AbstractTranslet;Lorg/apache/xml/dtm/DTMAxisIterator;)Z)
Incompatible type for getting or setting field
at org.apache.xalan.xslt.Process.doExit(Process.java:1155)
at org.apache.xalan.xslt.Process.main(Process.java:1128)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]