Hi,

You could do this with multiple transformation using the result of the
previous transformation in the next. For example:

Transformer t1 = StylesheetCache.newTransformer(xsl1);
File f = File.createTempFile("stream", ".xml");
Result result = new StreamResult(f);    
t1.setParameter("uname", name);
t1.transform(new StreamSource(source), result);

Transformer t2 = StylesheetCache.newTransformer(xsl2);
t2.transform(new StreamSource(result.getSystemId()), new StreamResult(out));
f.delete();

best,
-Rob


> -----Original Message-----
> From: Beasty kuku [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 19, 2003 12:51 PM
> To: [EMAIL PROTECTED]
> 
> It might not be the obvious use of XSLT, but my needs are to use the XSL
> as
> a scripting language.
> Meaning I start with a source XML document, but along my XSL processing,
> using mainly xalan-extension java function, I need to add and replace
> elements to the source document.
> 
> Is it possible to alter/modify the source document after the XSL mechnism
> began its transformation?
> 
> _________________________________________________________________
> Tired of spam? Get advanced junk mail protection with MSN 8.
> http://join.msn.com/?page�atures/junkmail

Reply via email to