[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Multiple input files

Subject: Re: Multiple input files
From: Cas Tuyn <Cas.Tuyn@xxxxxxxx>
Date: Mon, 29 Sep 2003 13:39:15 +0200
perl multiple input files
> > 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. 


  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;

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

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.