Subject: Re: multiple input to multiple output From: Mitch Christensen <mitch_christensen@xxxxxxxxx> Date: Fri, 10 Dec 1999 06:37:57 -0800 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: multiple input to multiple outp, Sebastian Rahtz | Thread | Re: multiple input to multiple outp, Miloslav Nic |
RE: multiple input to multiple outp, Robert C. Lyons | Date | XSL stylesheets for TEI XML documen, Sebastian Rahtz |
Month |