Thanks Morris,
I use Xalan 2.41 because of some bug introduced whith version 2.5.0 on
multiprocessor computers (I'm still investigate that but it seems to be
linked with the presence of <xslt:comment> element in one of my
transformations).
Bit I think that the best way is a common interface for the 2 TrAXFilter
like this:
package org.apache.xalan.trax;
public interface TrAXFilter extends XMLFilter, EntityResolver, DTDHandler,
ContentHandler, ErrorHandler {
public Transformer getTransformer();
}
and the two implementation renamed to TrAXFilterImpl and declared as :
public class TrAXFilterImpl extends XMLFilterImpl implements TrAXFilter
What do you think about that?
Or, as a seconf option , try to use the same TrAXFilter class by xalan and
xsltc?
I can prepair a patch for the first option friday or saterday if you will.
Regards,
Bernard D'Have
> -----Original Message-----
> From: Morris Kwan [mailto:[EMAIL PROTECTED]
> Sent: 24 June, 2003 15:31
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: Suggestion: Add Transformer getter to TrAXFilter
>
>
> Hi, Bernard
>
> The Xalan TrAXFilter class already has a getTransformer() method, if you
> use a Xalan release later than 2.5.0. I just added the same interface to
> XSLTC's TrAXFilter. You can check out code from the latest CVS to
> give it a
> try.
>
> Regards,
>
> Morris Kwan
> XSLT Development
> IBM Toronto Lab
> Tel: (905)413-3729
> Email: [EMAIL PROTECTED]
>
>
>
>
>
> "Bernard D'Have"
>
> <[EMAIL PROTECTED] To:
> <[EMAIL PROTECTED]>
>
> .be> cc:
>
> Subject:
> Suggestion: Add Transformer getter to TrAXFilter
>
> 06/23/2003 03:53
>
> PM
>
> Please respond to
>
> xalan-dev
>
>
>
>
>
>
>
>
> Hi,
>
> I'm running several transformations chained with TraxFilter.
> That runs in a servlet. I need need to set Parameters and URIResolver
> depending on the HttpRequest.
>
> But the transformer is private in the two TrAXFilter implementations
> (org.apache.xalan.transformer.TrAXFilter &
> org.apache.xalan.xsltc.trax.TrAXFilter).
>
> what about add a public Transformer getTransformer() to TrAXFilter?
>
> Or add an interface that the xalan & xsltc variations implements? It's a
> better way for me because it's much flexible (i.e. switching from xalan to
> xsltc via JAXP).
>
> Any comments?
>
> I read today a mail in xalan user list from Walt Fitzharris who have the
> same requirement.
>
> Regards,
> Bernard
>
>
>
>
>