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

Re: Directory listing, as xml file

Subject: Re: Directory listing, as xml file
From: "bryan rasmussen" <rasmussen.bryan@xxxxxxxxx>
Date: Sun, 1 Jun 2008 11:14:24 +0200
Re:  Directory listing
That depends too much on your platform to say. Is this XSL-T meant to
run in a filesystem, or is it meant to be running on a server and then
doing a HTTP GET on an address that represents a folder of files?

If in the filesystem then what filesystem, and anyway I don't think
there is a way to do it by the file uri scheme definition, however
maybe specific implementations of the file uri scheme would allow you
to give a folder path like file:///c:/ on Windows for example and get
a list of files back. I don't think so though.

Maybe a particular implementation will do this with file uris for you
though? Thus your xsl-t would be processor specific.


Cheers,
Bryan Rasmussen

On Sun, Jun 1, 2008 at 11:05 AM, Dave Pawson <davep@xxxxxxxxxxxxx> wrote:
> I want to generate a list of elements
> which constitutes all the xml files in
> a directory, say ./sub
>
> <reference
>           xmlns:xi='http://www.w3.org/2001/XInclude'>
> <title> Element Reference</title>
> <xi:include href='intro-elements.xml'/>
>
> <xi:include href='sub/a.xml'/>
> <xi:include href='sub/b.xml'/>
> <xi:include href='sub/c.xml'/>
>
> ....
>
>
> </reference>
>
> Any suggestions how this might be done (mostly) with xslt?
> I'm also trying to minimize the OS dependence.
>
>
> TIA
>
> regards
>
> --
> Dave Pawson
> XSLT XSL-FO FAQ.
> http://www.dpawson.co.uk

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.