xsl-list
[Top] [All Lists]

RE: [xsl] directory listing extension

2006-07-20 03:54:02

Is there an extension that given a directory will return a 
list of file paths from recursively traversing the directory,

All extensions are processor-dependent.

 eg:

index.html
images/logo.gif

...or will I need to write my own extension?


You may be able to call the underlying system methods directly:

xmlns:File="java:java.io.File"
<xsl:variable name="dir" select="File:new($directory)"/>
<xsl:variable name="files" select="File:list($dir)"/>
<xsl:for-each select="$files">...

Michael Kay
http://www.saxonica.com/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>