xsl-list
[Top] [All Lists]

Re: [xsl] Transforming Multuple

2006-08-21 00:24:47
Mohsen Saboorian wrote:

I wonder if there is a solution for transforming multiple
XML input documents using one XSLT in Java using
javax.xml.transform.* API?  Transformer class just has a
transform(Source xmlSource, Result outputTarget) method,
which can then only transform a single Source.

  If you want to access multiple documents from within a
single transformation, you can use doc() or document()
directly in the stylesheet.

  If you want to process a same transformation against
multiple main input trees, you can use newTemplate() instead
of newTransformer().  The former compile the stylesheet and
let you get a transformer (with each time a new dynamic
context) several time, while the later compile the
stylesheet *and* give you directly a transformer.  So if you
do a loop with newTransformer(), you'll compile your
stylesheet at each iteration.

  Regards,

--drkm





















        
 p5.vert.ukl.yahoo.com uncompressed/chunked Mon Aug 21 07:13:44 GMT 2006 
        
                
___________________________________________________________________________ 
Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet 
! 
Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos 
expériences. 
http://fr.answers.yahoo.com 


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>