[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: Mitch Christensen <mitch_christensen@xxxxxxxxx>
Date: Fri, 10 Dec 1999 06:37:57 -0800
mitch sebastian
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

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.