xsl-list
[Top] [All Lists]

Re: [xsl] Java list extension

2011-07-05 03:15:44
Now I need a way to discover the contents of a directory (files and
other directorys). So far I have:

You can get a list of all the files in the directory and
subdirectories by doing:

<xsl:for-each 
select="collection('file:///path/to/dir/?select=*;recurse=yes;on-error=ignore')">
  <xsl:value-of select="document-uri(.)"/>


-- 
Andrew Welch
http://andrewjwelch.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>