Issue Details (XML | Word | Printable)

Key: XALANJ-2298
Type: Bug Bug
Status: Resolved Resolved
Resolution: Duplicate
Priority: Blocker Blocker
Assignee: Henry Zongaro
Reporter: Björn Kautler
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
XalanJ2

ClassCastException in SymbolTable.addParam() and compilererror

Created: 24/May/06 12:33 AM   Updated: 11/Dec/07 04:57 PM
Return to search
Component/s: XSLTC
Affects Version/s: 2.7
Fix Version/s: 2.7.1

Time Tracking:
Not Specified

Environment:
DocBook 4.2 DTD
DocBook XSL 1.69.1
Issue Links:
Duplicate
 

Resolution Date: 12/Jul/06 03:37 AM


 Description  « Hide
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]

:-(

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Henry Zongaro added a comment - 12/Jul/06 03:37 AM
This problem appears to be a duplicate of XALANJ-2199, which has been fixed in the Xalan-J source repository.

Brian Minchau added a comment - 12/Jul/06 11:30 PM
Henry Z. suggests that we add DocBook to our regression tests. Maybe in our smoketest?

This issue was triaged on July 11, 2006.

Brian Minchau added a comment - 12/Jul/06 11:40 PM
Assigning to Henry per the triage on July 11, 2006.

Henry will try to create a smaller testcase.

Brian Minchau added a comment - 11/Dec/07 04:57 PM
Would the originator of this issue please verify that this issue is fixed in the 2.7.1 release, by adding a comment to this issue, so that we can close this issue.

A lack of response by February 1, 2008 will be taken as consent that we can close this resolved issue.

Regards,
Brian Minchau