Uploaded image for project: 'Cocoon'
  1. Cocoon
  2. COCOON-1704

Error Message brokenness when SAXON is used as the XSLT transformer.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.8
    • 2.1.9, 2.2
    • * Cocoon Core
    • None

    Description

      SAXON 8.x always fails with a message "Running an XSLT 1.0 stylesheet with an XSLT 2.0 processor" no matter what error it encounters.

      This is because it emits this as a warning to its configured ErrorHandler, and o.a.c.c.xslt.TraxErrorListener is configured to handler XALAN's brokenness, and caches warnings.

      Also, the o.a.c.c.xslt.TraxProcessor class does not allow to set generic "attributes" in the wrapped SAXTransformerFactory class, so, this can't be solved with configurations.

      And the only way I found to have SAXON to ignore those warnings is by setting the "http://saxon.sf.net/feature/version-warning" attribute to false.

      This simple patch makes this behavior mandatory when using SAXON, so that error messages work back again no problem.

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--patch.txt
          0.9 kB
          Pier Fumagalli

        Activity

          People

            jbq Jean-Baptiste Quenot
            pier Pier Fumagalli
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: