I am using com.icl.Filter objects to build a transformation chain.
The Filters are created by calling newXMLFilter() on a SAXTransformerFactory, then I link the filters.
This all works fine.
But now I want to set transformation parameters for each transformation.
The Filter class only implements the sax XMLFilter and XMLReader, and does not provide for this feature. The Controller
objects are hidden in the Filters, so I cannot call setParameter() on the Controllers.
How should I do this?
From: Michael Kay <michael.kay@nt...> - 2002-04-23 11:43:02
This is a limitation of the JAXP interface. Because the SAXTransformer
concept is designed to turn an XSLT transformation into a standard SAX
filter, there is no mechanism for supplying parameters to the
I can't think of any obvious workaround, other than using the "standard"
transform() interface (which still allows you to get input from a SAX
XMLReader and send output to a SAX ContentHandler).
I think the design thinking was that the only benefit that the
SAXTransformer has over the Transformer.transform() approach is that you can
use the SAX filter in a context where the calling software doesn't know
anything about XSLT-specific interfaces; so there wouldn't be any value in
adding extra methods to set parameters to the filter interface.
> -----Original Message-----
> From: saxon-help-admin@...
> [mailto:saxon-help-admin@...]On Behalf Of Bart
> Sent: 23 April 2002 10:48
> To: saxon-help@...
> Subject: [saxon] Filter and transform parameters
> I am using com.icl.Filter objects to build a transformation chain.
> The Filters are created by calling newXMLFilter() on a
> SAXTransformerFactory, then I link the filters.
> This all works fine.
> But now I want to set transformation parameters for each
> The Filter class only implements the sax XMLFilter and
> XMLReader, and does not provide for this feature. The Controller
> objects are hidden in the Filters, so I cannot call
> setParameter() on the Controllers.
> How should I do this?
> Bart Swennenhuis
> saxon-help mailing list