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

Re: read directory and get it as an array

Subject: Re: read directory and get it as an array
From: Jesper Tverskov <jesper.tverskov@xxxxxxxxx>
Date: Fri, 16 Jan 2009 12:00:03 +0100
Re:  read directory and get it as an array
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

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.