xml-xalan-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey S. Kljopov" <kljo...@wetellyou.com>
Subject Re: xalanJ1 -> xalanJ2
Date Fri, 23 Feb 2001 03:45:58 GMT
I can do this but how i can commit changes and what about if i make some
small mistake?
Especially i'm eager to do this for a long time.
----- Original Message -----
From: <Scott_Boag@lotus.com>
To: <xalan-dev@xml.apache.org>
Sent: 23 февраля 2001 г. 1:54
Subject: Re: xalanJ1 -> xalanJ2


>
> Well, I think for the time being you either have to dive into the code,
> learn how it works, and help us to change the code so it supports what you
> need to do.  Or you'll need to forget it for now until one of us has a bit
> of extra time to work on it.
>
> -scott
>
>
>
>
>
>                     "Sergey S.
>                     Kljopov"             To:
<xalan-dev@xml.apache.org>
>                     <kljopov@wete        cc:     (bcc: Scott
Boag/CAM/Lotus)
>                     llyou.com>           Subject:     Re: xalanJ1 ->
xalanJ2
>
>                     02/21/2001
>                     11:24 PM
>                     Please
>                     respond to
>                     xalan-dev
>
>
>
>
>
> Hm... recompose doesn't help me.. Is there any plans to fix it? Or i must
> forget this way?
>
> WBR, Sergey S. Kljopov
> ----- Original Message -----
> From: Sergey S. Kljopov <kljopov@wetellyou.com>
> To: <xalan-dev@xml.apache.org>
> Sent: 21 февраля 2001 г. 11:57
> Subject: Re: xalanJ1 -> xalanJ2
>
>
> > Some times ago i tried to use this... but calling recompose didn't help
> me
> > cause it was no recomposing composed stylesheet...
> > ok, i'll try. may be it was fixed...
> > ----- Original Message -----
> > From: <Scott_Boag@lotus.com>
> > To: <xalan-dev@xml.apache.org>
> > Sent: 21 февраля 2001 г. 11:38
> > Subject: Re: xalanJ1 -> xalanJ2
> >
> >
> > >
> > > That's more problematic.  Cast your Templates object to a
> StylesheetRoot,
> > > and take a look at the methods available.  You have to call
recompose()
> > > after you set it.  I've not done what you are trying to do, so it may
> be
> > > problematic.  In some sense you just have to look at the code in
> > > StylesheetRoot and try and figure it out.
> > >
> > > -scott
> > >
> > >
> > >
> > >
> > >
> > >                     "Sergey S.
> > >                     Kljopov"             To:
> > <xalan-dev@xml.apache.org>
> > >                     <kljopov@wete        cc:     (bcc: Scott
> > Boag/CAM/Lotus)
> > >                     llyou.com>           Subject:     Re: xalanJ1 ->
> > xalanJ2
> > >
> > >                     02/20/2001
> > >                     10:58 PM
> > >                     Please
> > >                     respond to
> > >                     xalan-dev
> > >
> > >
> > >
> > >
> > >
> > >
> > > Thanks for your advice.. But i want to use setImport with purpose to
> > > dinamically set imports for processed templates and perform
> > transformations
> > > with it.
> > > In xalanj1 i use StylesheetRoot.setImports(Vector) but how i can do
> this
> > in
> > > xalanj2?
> > >
> > > ----- Original Message -----
> > > From: <Myriam_Midy@lotus.com>
> > > To: <xalan-dev@xml.apache.org>
> > > Sent: 1 февраля 2001 г. 20:58
> > > Subject: Re: xalanJ1 -> xalanJ2
> > >
> > >
> > > >
> > > > Sergey,
> > > > There is an example in the samples on how to use the stylesheet
> object.
> > > > Look at exampleUseTemplatesObj in trax.Examples.java. Hopefully that
> > will
> > > > help answer your question.
> > > >
> > > > Myriam
> > > >
> > > >
> > > >
> > > >
> > > > "Sergey S. Kljopov" <kljopov@wetellyou.com> on 02/01/2001 02:38:49
AM
> > > >
> > > > Please respond to xalan-dev@xml.apache.org
> > > >
> > > > To:   <xalan-dev@xml.apache.org>
> > > > cc:    (bcc: Myriam Midy/CAM/Lotus)
> > > > Subject:  xalanJ1 -> xalanJ2
> > > >
> > > > Hi!
> > > >
> > > > I have to switch between xalanJ1 and xalanJ2. I'm used to do this
> some
> > > > times ago... AFAIR it was a method to get a StylesheetRoot object
> from
> > > xsl
> > > > InputStream in xalanJ2 API. But now i can't find it.
> > > > Look:
> > > >
> > > > At xalanJ1 i use following:
> > > >
> > > > XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
> > > > StylesheetRoot sheet = processor.processStylesheet(...);
> > > > StylesheetRoot sheetImp = processor.processStylesheet(...);
> > > >
> > > > sheetImports.add(sheetImp);
> > > > sheet.setImports(sheetImports);
> > > >
> > > > sheet.process(...);
> > > >
> > > > I wanna do this in xalanJ2 API precisely as in xalanJ1.
> > > >
> > > > smth like:
> > > >
> > > > StylesheetRoot sheet = // method to get an object of StylesheetRoot
> > > > StylesheetRoot sheetImp = // from an InputSource
> > > >
> > > > sheet.setImport(sheetImp);
> > > > sheet.recompose(); // if there is needed
> > > >
> > > > sheet.newTransformer().transform(); // because implemened interface
> > > > Templates has method newTransformer()
> > > >
> > > > Can i do smth to perform this transformation or this opportunity is
> not
> > > > thread-safe (or smth other reasons) and was removed from xalanJ2
API?
> > > >
> > > > WBR, Sergey S. Kljopov
> > > >
> > > >
> > >
> > >
>
>


Mime
View raw message