ClassCastException in SymbolTable.addParam() and compilererror
--------------------------------------------------------------
Key: XALANJ-2298
URL: http://issues.apache.org/jira/browse/XALANJ-2298
Project: XalanJ2
Type: Bug
Components: XSLTC
Versions: 2.7
Environment: DocBook 4.2 DTD
DocBook XSL 1.69.1
Reporter: Björn Kautler
Priority: Blocker
I tried to build the DocBook documentation of jEdit, which can be found in
source on www.jedit.org
With xsltproc it works without problems, but with XSLTC which I would prefer to
use I cannot get it managed.
If I do "java -cp xalan.jar org.apache.xalan.xsltc.cmdline.Compile
jedithtml.xsl" I get a ClassCastException:
[quote]
java.lang.ClassCastException: org.apache.xalan.xsltc.compiler.Variable
at
org.apache.xalan.xsltc.compiler.SymbolTable.addParam(SymbolTable.java:85)
at org.apache.xalan.xsltc.compiler.Param.parseContents(Param.java:133)
at
org.apache.xalan.xsltc.compiler.Stylesheet.parseOwnChildren(Stylesheet.java:575)
at
org.apache.xalan.xsltc.compiler.Stylesheet.parseContents(Stylesheet.java:557)
at
org.apache.xalan.xsltc.compiler.Include.parseContents(Include.java:116)
at
org.apache.xalan.xsltc.compiler.Stylesheet.parseOwnChildren(Stylesheet.java:585)
at
org.apache.xalan.xsltc.compiler.Stylesheet.parseContents(Stylesheet.java:557)
at org.apache.xalan.xsltc.compiler.Import.parseContents(Import.java:116)
at
org.apache.xalan.xsltc.compiler.Stylesheet.parseOwnChildren(Stylesheet.java:585)
at
org.apache.xalan.xsltc.compiler.Stylesheet.parseContents(Stylesheet.java:557)
at org.apache.xalan.xsltc.compiler.Import.parseContents(Import.java:116)
at
org.apache.xalan.xsltc.compiler.Stylesheet.parseOwnChildren(Stylesheet.java:585)
at
org.apache.xalan.xsltc.compiler.Stylesheet.parseContents(Stylesheet.java:557)
at org.apache.xalan.xsltc.compiler.Import.parseContents(Import.java:116)
at
org.apache.xalan.xsltc.compiler.Stylesheet.parseOwnChildren(Stylesheet.java:585)
at
org.apache.xalan.xsltc.compiler.Stylesheet.parseContents(Stylesheet.java:557)
at org.apache.xalan.xsltc.compiler.Parser.createAST(Parser.java:381)
at org.apache.xalan.xsltc.compiler.XSLTC.compile(XSLTC.java:344)
at org.apache.xalan.xsltc.compiler.XSLTC.compile(XSLTC.java:253)
at org.apache.xalan.xsltc.compiler.XSLTC.compile(XSLTC.java:389)
at org.apache.xalan.xsltc.cmdline.Compile.main(Compile.java:129)
[/quote]
As far as I could track it down it is caused by "<xsl:variable
name="use.id.as.filename">1</xsl:variable>", "<xsl:variable
name="toc.list.type">ul</xsl:variable>" and "<xsl:variable
name="funcsynopsis.style">ansi</xsl:variable>" if either of these are present.
And after that exception I get a compiler-error:
[quote]
Compilerfehler:
Syntaxfehler in '* or $generate.index != 0'.
file:///C:/Programme/DocBook%20XSL%201.69.1/html/autotoc.xsl: line 317:
Fehler bei Syntaxanalyse des XPath-Ausdrucks '* or $generate.index != 0'.
file:///C:/Programme/DocBook%20XSL%201.69.1/html/autotoc.xsl: line 317:
Erforderliches Attribut 'test' fehlt.
Syntaxfehler in '* or $generate.index != 0'.
file:///C:/Programme/DocBook%20XSL%201.69.1/html/autotoc.xsl: line 436:
Fehler bei Syntaxanalyse des XPath-Ausdrucks '* or $generate.index != 0'.
file:///C:/Programme/DocBook%20XSL%201.69.1/html/autotoc.xsl: line 436:
Erforderliches Attribut 'test' fehlt.
[/quote]
:-(
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]