[ 
https://issues.apache.org/jira/browse/XALANJ-2137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12551107
 ] 

Brian Minchau commented on XALANJ-2137:
---------------------------------------

Actually this page here:
http://xml.apache.org/xalan-j/usagepatterns.html#outputprops

has information on configuring serializaion output properties (provided you are 
willing to edit say output_html.properties and change the content-handler in 
there to point to your class).

Two problems with this:
1) this property file may be inside of the JRE (depending on which JRE you are 
using) so getting it used may require work with your classpath or endorsed 
directory, of course this may be true of Xalan-J in general).
2) All transformations will use your handler, not just the particular 
stylesheet of interest.

I think the above should work, even for XSLTC.  A second effort would be by 
running the transformation with JAXP and using setProperty(key,value) with the 
value being the name of your ContentHandler, and the key being:
   "{http://xml.apache.org/xalan}content-handler";
which uses Clark notation to set the namespace of that content-handler 
property.  Sadly I don't think JAXP is yet up to speed on how to set xsl:output 
attributes that are in a namespace.  But you don't need to worry about nits 
like that, the whole extension attribute of xsl:output is already non-standard. 
 This second way might work with XSTLC, but I'm not sure.  The first way will 
however work with XSLTC.

Regards,
Brian Minchau


> XSLTC does not support all extension xsl:output attributes
> ----------------------------------------------------------
>
>                 Key: XALANJ-2137
>                 URL: https://issues.apache.org/jira/browse/XALANJ-2137
>             Project: XalanJ2
>          Issue Type: Bug
>          Components: XSLTC
>            Reporter: Brian Minchau
>            Assignee: Brian Minchau
>             Fix For: The Latest Development Code
>
>         Attachments: extension.output.attrs.2137.patch3.txt, 
> July13.2005.patch.for.2137.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.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to