Firstly, questions specific to a product are best asked on the help forum for that product. Saxon has a saxon-help forum and a saxon-help mailing both accessible via the SourceForge page for the saxon project.
There are several ways you could tackle this.
(a) The Saxon command line has an option to process all files in a directory. Just specify the directory name in the -s argument (and a directory for the output in -o).
(b) Learn how to use shell programming to locate all the files in a directory and process them iteratively
(c) Write a single XSLT transformation that accesses all the files in a directory using the collection() function
(d) Write a Java application as a shell around the XSLT transformation
(e) Use Kernow, which has the ability to process multiple source files with the same stylesheet.
Note that invoking Saxon repeatedly from the command line is very inefficient: not only does it recompile the stylesheet each time, it also incurs heavy overheads in initializing the Java VM. But this may not matter to you.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
|