Return-Path: Mailing-List: contact xalan-dev-help@xml.apache.org; run by ezmlm Delivered-To: mailing list xalan-dev@xml.apache.org Received: (qmail 4422 invoked from network); 23 Feb 2001 03:46:25 -0000 Received: from mail.wetellyou.com (64.65.14.238) by h31.sny.collab.net with SMTP; 23 Feb 2001 03:46:25 -0000 Received: from kljopov (auktion24.ru [212.20.33.233]) by mail.wetellyou.com (8.11.0/8.11.0) with SMTP id f1N3k2h25943 for ; Fri, 23 Feb 2001 03:46:03 GMT Message-ID: <002101c09d4b$236a4910$9b00000a@auktion24.ru> From: "Sergey S. Kljopov" To: References: Subject: Re: xalanJ1 -> xalanJ2 Date: Fri, 23 Feb 2001 09:45:58 +0600 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N 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: To: 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: > 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 > To: > 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: > > To: > > 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: > > > > > > 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: > > > To: > > > 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" on 02/01/2001 02:38:49 AM > > > > > > > > Please respond to xalan-dev@xml.apache.org > > > > > > > > To: > > > > 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 > > > > > > > > > > > > > > > >