|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: xslt and the filesystem
tom.kirkpatrick@xxxxxxxxxxxx writes:
> Is it possible for xsl/xpath, via the document() function, to read in all
> files in a particular directory...
>
> It would be really neet If I could just get the XSL template to look at
> everyfile in the directory, and apply appropriate processing:
>
I've written an Apache (1.3.x) module, mod_rssindex, to handle this
problem. It creates an RSS 2.0 (XML) document of the files and
directories in a directory. Use
<xsl:variable
name="path"
select="document('http://yourhost.com/path/to/index.rss')/rss/channel"/>
<xsl:for-each select="$path/item[description = 'file']">
<xsl:variable name="file" select="document(link)"/>
<!-- do work with '$file' here -->
</xsl:for-each>
You can get download and installation information at:
http://xobjex.com/projects/mod_rssindex/
--
Daniel Bibbens http://xobjex.com/
Apache modules and other open-source projects for XSL & RSS
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








