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

Xalan 2.7.0 Error parsing XPath expression

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 2.7
    • 2.7.1
    • XSLTC
    • None
    • PatchAvailable

    Description

      I'm trying to compile docbook XSL 1.69.1, however, xsltc fails with:

      Compiler errors:
      Syntax error in '* or $generate.index != 0'.
      file:/usr/apps/docbook/xsl/1.69.1/xhtml/autotoc.xsl: line 294: Error parsing XPath expression '* or $generate.index != 0'.
      file:/usr/apps/docbook/xsl/1.69.1/xhtml/autotoc.xsl: line 294: Required attribute 'test' is missing.
      Syntax error in '* or $generate.index != 0'.
      file:/usr/apps/docbook/xsl/1.69.1/xhtml/autotoc.xsl: line 401: Error parsing XPath expression '* or $generate.index != 0'.
      file:/usr/apps/docbook/xsl/1.69.1/xhtml/autotoc.xsl: line 401: Required attribute 'test' is missing.

      But the test attributes are there (e.g. autotoc.xsl):
      294: <xsl:if test="* or $generate.index != 0">
      ...

      But transformation with the "normal" processor, which uses this template as well works.

      Refs:
      http://mesh.dl.sourceforge.net/sourceforge/docbook/docbook-xsl-1.69.1.tar.gz
      http://archive.apache.org/dist/xml/xalan-j/xalan-j_2_7_0-bin.tar.gz

      Used commandline:
      java -cp /usr/apps/xalan/serializer.jar:/usr/apps/xalan/xalan.jar:/usr/apps/xalan/xercesImpl.jar:/usr/apps/xalan/xml-apis.jar:/usr/apps/docbook/xsl/1.69.1/extensions/xalan25.jar org.apache.xalan.xsltc.cmdline.Compile -x /usr/apps/docbook/xsl/1.69.1/xhtml/chunk.xsl

      Attachments

        1. patch.j2199.txt
          4 kB
          Henry Zongaro
        2. patch.v2.j2199.txt
          3 kB
          Henry Zongaro

        Issue Links

          Activity

            People

              zongaro@ca.ibm.com Henry Zongaro
              elkner Jens Elkner
              Yash Talwar Yash Talwar
              Votes:
              2 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: