Roberto Cosenza <[EMAIL PROTECTED]> wrote on 05/23/2006 03:55:44 AM:

> Thanks for your help guys.
> 
> 1) Does anybody have an example of how to serialize a SAX with the
> TransformerHandler?

One of the samples [1] which ships with Xalan-J should show you how to 
create one and use it.

> 2) How do I put together the JAXP transformation with my SAX event
> handlers? I want only the attributes which have the "specified" property
> set. (thanx chris for the suggestion)
>
> Seems that I have to write my own ContentHandler to output the XHTML.(?)
> My idea is to have a DefaultHandler chained with with a XMLFilterImpl.
> The DefaultHandler modifies the XHTML as I want and the chained filter
> outputs it.

TransformerHandler is a ContentHandler (and LexicalHandler/DTDHandler). 
You could set it as the event receiver on your filter.

Thanks.

[1] http://xml.apache.org/xalan-j/samples.html

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]

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

Reply via email to