run numerous xslt from java
I have one xml file, and around 6 xsl files that result in different transformations.
Given a path name to the xml file, how do I run these transformations in java?
Also, is it possible to store the filenames of the xsl files as parameters in the java application, and just substitute parameters each time i want to run a transformation?
Thanks
[369 byte] By [
clarkana] at [2007-11-26 18:35:36]

# 1
> I have one xml file, and around 6 xsl files that
> result in different transformations.
> Given a path name to the xml file, how do I run these
> transformations in java?
Does output of one transformation become input for next one ? Or, are all transformations to be done independently on the same XML file ?
> Also, is it possible to store the filenames of the
> xsl files as parameters in the java application,
> and just substitute parameters each time i want to
> run a transformation?
I suppose you have distinct XSL files for each transformation. In that case you can certainly store XSL Filenames and then pass it on as argument for a method that invokes parser. You can google for samples (eg. Saxon).