You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Brian Minchau (JIRA)" <xa...@xml.apache.org> on 2006/04/04 17:34:46 UTC

[jira] Commented: (XALANJ-2133) XSLTC identity transform doesn't set all JAXP output properties

    [ http://issues.apache.org/jira/browse/XALANJ-2133?page=comments#action_12373124 ] 

Brian Minchau commented on XALANJ-2133:
---------------------------------------

Comments from JIRA bug Triage on Febrary 7, 2006: 
> Morris already reviewed path
> Brian needs to commit.

> XSLTC identity transform doesn't set all JAXP output properties
> ---------------------------------------------------------------
>
>          Key: XALANJ-2133
>          URL: http://issues.apache.org/jira/browse/XALANJ-2133
>      Project: XalanJ2
>         Type: Bug

>     Versions: 2.6
>     Reporter: Brian Minchau
>     Assignee: Brian Minchau
>  Attachments: patch.jira.2133.txt
>
> When running the XSLTC identity transform via JAXP it is possible to effectively set xsl:output properties via the JAXP setOutputProperty() method.
> Unfortunately the method
>    transferOutputProperties(SerializationHandler)
> in the class:
>    org.apache.xalan.xsltc.trax.TransformerImpl
> parses the output properties itself, and only passes those that it recognizes
> to the handler. In doing so it fails to pass any xalan extension properties, such as "{http://xml.apache.org/xalan}indent-amount".  It also does its own parsing of "cdata-section-elements" and incorrectly parses the URI. It doesn't look for a URI surrounded by braces, as it should according to JAXP.
> All this method does is parse the properties and call setter-s one at a time on the handler.  The fix is simply to pass the java.util.Properties object to the already public API that is on the Serializer interface, namely
>    setOutputFormat(java.util.Properties)
> and let it deal with all of the properties itself.  This will smoothly get all properties set via JAXP to the serializer.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org