xsl-list
[Top] [All Lists]

Re: [xsl] read directory and get it as an array

2009-01-16 06:00:28
Easily.

The trick is to put the collection() function as value of select
attribute in an xsl:for-each. It returns all the URLs. The following
example from my "Collection() with REGEX in XSLT" tutorial,
http://www.xmlplease.com/collection, answers most of your questions
and it would be easy to adjust the example to answer all of them:

http://www.xmlplease.com/xmltraining/collection/collection.xsl

producing this output:

http://www.xmlplease.com/xmltraining/collection/filenames.html

Cheers,
Jesper Tverskov

--~------------------------------------------------------------------
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>
--~--