Uploaded image for project: 'XalanJ2'
  1. XalanJ2
  2. XALANJ-2298

ClassCastException in SymbolTable.addParam() and compilererror

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Duplicate
    • 2.7
    • 2.7.1
    • XSLTC
    • None
    • DocBook 4.2 DTD
      DocBook XSL 1.69.1

    Description

      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]

      Attachments

        Issue Links

          Activity

            People

              zongaro@ca.ibm.com Henry Zongaro
              vampire Björn Kautler
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: