|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: multiple input to multiple output
I would recommend a general purpose Perl script which outputs an XML representation of the directory (optionally recursive). This directory.xml then can be used for any/all file processing from within XSL. An example would be. <directory location="file:///C:/"> <file name="foo" ext="xml" createdate="blah".../> ... <directory location="file:///C:/DOS"> ... </directory> </directory> Once this file exists, you can use the document() function to process files/directories as you like. I actually wrote this script for my last project. Took about an hour to get it right. -Mitch Sebastian Rahtz wrote: > Linda van den Brink writes: > > Unfortunalely I don't know any programming/scripting languages at all, > > except for a bit of Omnimark. I wanted to know if could be done with XSL > > itself. If not, maybe I'd best ask my colleague for a perl script? > > XSL has no access to the directory listing. I am sure Java folk could > get at that using extensions such as James Clark allows, but natively > in XSL no can do. > > I cannot see how to solve your problem without *some* kind of > scripting. even doing a file list into a file and then mangling that > to a valid XML takes some minimal scripting. > > A Perl script would be a few minutes work, if you have a > suitably-equipped colleague > > Sebastian > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








