Subject: Re: [xsl] Multiple input files From: S Woodside <sbwoodside@xxxxxxxxx> Date: Tue, 30 Sep 2003 03:07:17 -0400 |
Perhaps others who read this list in 98/99 can help, #but I thought that if the input file to xt was a directory, then each .xml file in that directory was processed?
regards DaveP
directory as inputMy question is how to read all the xml files in onefiles to my XSL file?
Why not do this in Perl, and let Perl call the XSLT engine for every file? Or do you need to do XSLT over all files simultaneously?
Below a little Perl to only process files in the current directory who start with the content of the -f commandline variable. Instead of print "+"; you can place the command to XSLT one file using whatever XSLT engine supporting commandline running.
Cas
if ( $option{f} ) { # -f = only files starting with print "... Converting $option{f} procedures to HTML:\n"; @filestodo = <$option{f}*>; print "@filestodo \n"; foreach $file (@filestodo) { print "+"; } print "\n--> Found " . scalar(@filestodo) . " files to do.\n"; return \@filestodo; }
-- www.simonwoodside.com :: www.openict.net :: www.semacode.org 99% Devil, 1% Angel
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Multiple input files, David Carlisle | Thread | RE: [xsl] How to achieve java forma, Passin, Tom |
RE: [xsl] replace multiple distinct, Jarno . Elovirta | Date | Re: [xsl] how to match node set wit, S Woodside |
Month |