You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by Verachten Bruno <Br...@atosorigin.com> on 2002/12/12 13:34:11 UTC

How to obtain an XMLFilter or an TransformerHandler from a transl et?

Hi,

I wrote yesterday, but I haven't been crystal clear [was RE: How to
chain transformations with XSLT?]  I can chain transformations with
Xalan without any problem (with TransformerHandler).  I've read the
documentation and I saw there are two ways of chaining
transformations: with XML Filters or with TransformerHandlers.

If I was compiling the stylesheets at runtime, I would get easily a
TransformerHandler, because of the use of Trax.  The problem is: my
stylesheets are already compiled, and located in a jar file.  So I
just can't instantiate an XMLFilter with a line as: 

XMLFilter xmlFilter1 = saxTFactory.newXMLFilter(new
StreamSource("foo1.xsl"));
I don't have the XSL file anymore :-(

I can't either use this kind of code:
TransformerHandler tHandler1 = saxTFactory.newTransformerHandler(new
StreamSource("foo1.xsl"));
for the same reason.

How can I get a StreamSource or a TransformerHandler or an XMLFilter
with just a Translet object?

Thanks in advance.

Bruno, France.