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 2005/06/02 21:12:53 UTC

[jira] Updated: (XALANJ-2137) XSLTC does not support all extension xsl:output attributes

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

Brian Minchau updated XALANJ-2137:
----------------------------------

    Attachment: extension.output.attrs.2137.patch3.txt

Attaching a patch which does the following
========================================================================
1) Parsing of additional attributes in the stylesheet <xsl:output.../>
in org.apache.xalan.xsltc.compiler.Output for:
  xalan:entities
  xalan:omit-meta-tag
  xalan:use-url-escaping
Previously only xalan:indent-amount was done.
Some bytecode generation changes to set these values on
the translet at runtime. This should be backwards compatible because
the translet has new fields, but all old fields exist like before.
=================================================================
2) JAXP can over-ride xsl:output values, and this is done in
TransformerImpl.transferOutputProperties(AbstractTranslet translet) 
so some code was changed here.
=========================================================
3) Transfer output properties to the serializer at runtime.
The method AbstractTranslet.transferOutputSettings(SerializationHandler handler)
used to pass the effective xsl:output properties to the 
serializer by calling various setter methods. However adding more
setters for each of these extension attributes didn't seem like the best thing.
So I changed this method to create a java.util.Properties object that wraps
all the attributes, standard or extensions, and called the
handler.setOutputFormat(props) method, which is a public API
on the Serializer interface.



> XSLTC does not support all extension xsl:output attributes
> ----------------------------------------------------------
>
>          Key: XALANJ-2137
>          URL: http://issues.apache.org/jira/browse/XALANJ-2137
>      Project: XalanJ2
>         Type: Bug
>   Components: XSLTC
>     Reporter: Brian Minchau
>     Assignee: Brian Minchau
>  Attachments: extension.output.attrs.2137.patch3.txt
>
> XSLTC only handles one xsl:output Xalan extension attribute,
> xalan:indent-amount 
> (where the prefix xalan points to URI "http://xml.apache.org/xalan")
> The full list of extension attributes is:
> xalan:indent-amount
> xalan:content-handler
> xalan:entities
> xalan:omit-meta-tag
> xalan:use-url-escaping
> xalan:line-separator
> These need to be supported in the stylesheet, and via JAXP overrides of what is in the stylesheet, e.g.  
>     transformer.setProperty("{http://xml.apache.org/xalan}line-separator","\n");
> These are all supported by Xalan-J interpretive, but only indent-amount is supported by XSLTC, and only in the stylesheet, not through JAXP overrides.

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