xsl-list
[Top] [All Lists]

Re: Multiple input files

2003-09-29 04:39:15

My question is how to read all the xml files in one directory as input
files 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 \(_at_)filestodo;
   }



-- 
The information contained in this communication and any attachments is 
confidential and may be privileged, and is for the sole use of the intended 
recipient(s). Any unauthorized review, use, disclosure or distribution is 
prohibited. If you are not the intended recipient, please notify the sender 
immediately by replying to this message and destroy all copies of this message 
and any attachments. ASML is neither liable for the proper and complete 
transmission of the information contained in this communication, nor for any 
delay in its receipt.



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>