[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Transforming Multuple
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 ___________________________________________________________________________ Dicouvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet ! Yahoo! Questions/Riponses pour partager vos connaissances, vos opinions et vos expiriences. http://fr.answers.yahoo.com
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|