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

Re: multiple input to multiple output

Subject: Re: multiple input to multiple output
From: Miloslav Nic <nicmila@xxxxxxxx>
Date: Fri, 10 Dec 1999 16:17:01 +0100
perl multiple input
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.