Yeah, I'm sorry for the confusion

Thanks,
Dmitry

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 09:50
To: [EMAIL PROTECTED]
Subject: RE: style sheet parameters reset ?



This is actually a question about the C++ XalanTransformer class, which is
quite different from the TrAX Transformer object.

Dave



 

                      "Voytenko,

                      Dimitry"                 To:
"'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>   
                      <DVoytenko@SECTO         cc:      (bcc: David N
Bertoni/CAM/Lotus)                          
                      RBASE.COM>               Subject: RE: style sheet
parameters reset ?                        
 

                      08/22/2001 12:15

                      PM

                      Please respond

                      to xalan-dev

 

 




Hi Benoit,

>     session, should i use one transformer for all of these
transformation;
If they can go simultaneously - no. Actually Transformer implementation is
pretty ligh-weight, at least, comparing to Templates. You can reuse
Templates (i.e. stylesheet itself) and it will give you good performance
boost. Then the second question is solved automatically. You will just call
Templates.newTransformer each time you need a transformation on this
stylesheet.
If you still want to reuse Transformer object in the case of Xalan's
org.apache.xalan.transformer.TransformerImpl call method reset(). It should
prepare Trasnformer for second process call.


Thanks,
Dmitry

-----Original Message-----
From: Benoit Lefevre [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 08:17
To: [EMAIL PROTECTED]
Subject: style sheet parameters reset ?




Hello

     I'm developing a wizard that enable users to graphicaly
     edit datas and save these into a public XML format.

     In this application i'd like to give users the possibility to produce
     something else than a XML file. In fact the idea is to give them the
     possibility to supply an XSL file for the wizard to build the output
     with a XalanTransformer object.

     This is possible because my data's memory representation is
     based from A to Z on Xerces DOM representation.

     Now here is my problem (i allways have problems :) :

     If the user want to produce multiple XSL transformation durring one
     session, should i use one transformer for all of these transformation;
     or should i recreate one transformer every time a transformation is
     asked ??.

     If the first solution is realistic compare to the standard usage
pattern,
     so i have another problem.

     I'd like either give the user the possibility to set his own
stylesheet
     parameters. Indeed, if he want to apply to the DOM data representation
     more than one stylesheet tranformation, how do i "reset" the
     stylesheet parameters ?
     This is not possible with the XalanTransformer interface.

     Do i simply set these parameters to an empty string ?

     thank you.

Regards.

benoit lefevre




Reply via email to