[ http://issues.apache.org/jira/browse/COCOON-1704?page=all ]

Jean-Baptiste Quenot reassigned COCOON-1704:
--------------------------------------------

    Assign To: Jean-Baptiste Quenot

> Error Message brokenness when SAXON is used as the XSLT transformer.
> --------------------------------------------------------------------
>
>          Key: COCOON-1704
>          URL: http://issues.apache.org/jira/browse/COCOON-1704
>      Project: Cocoon
>         Type: Bug
>   Components: * Cocoon Core
>     Versions: 2.1.8
>     Reporter: Pier Fumagalli
>     Assignee: Jean-Baptiste Quenot
>  Attachments: patch.txt
>
> 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.

-- 
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