Subject: Re: multiple input to multiple output From: Miloslav Nic <nicmila@xxxxxxxx> Date: Fri, 10 Dec 1999 16:17:01 +0100 |
Zvon tutorials http://zvon.vscht.cz/ZvonHTML/Zvon/zvonTutorials_en.html generally use this perl - XSLT strategy. The last two, WML and Crossfire generate indexes very simply as follows: perl opens all source files and creates one new XML file. From this file indexes are generated by applying several XSLT stylesheets. Mitch Christensen wrote: > > 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 -- *************************************************************** Dr. Miloslav Nic e-mail: nicmila@xxxxxxxx Department of Organic Chemistry TEL: +420 2 2435 5012 ICT Prague (VSCHT Praha) +420 2 2435 4118 FAX: +420 2 2435 4288 **************************************************************** Support free information exchange: http://zvon.vscht.cz **************************************************************** XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: multiple input to multiple outp, Mitch Christensen | Thread | running Saxon examples, Yannick Nicolas |
RE: running Saxon examples, Kay Michael | Date | Re: FOP fo:display-graphic problem, Emmanuel.Leguy |
Month |