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

Re: collection()

Subject: Re: collection()
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Tue, 23 Jan 2007 22:44:48 +0100
Re:  collection()
Colin Adams wrote:
In gestalt, that would be collection ('foo').
And collection() does the same thing for the current working directory.


Andrew Welch wrote:

For example - say you have 1000's of XML files in a directory and you
want to generate a report detailing the links in the dataset, you
would use the collection() function

David Carlisle wrote:
?select=*.xml;recurse=yes;on-error=ignore'

to say go down the directory tree and  ignore any non xml files (so it
doesn't fall over CVS directories:-)


Imagine I do it all "by hand" now (using an extension function to get the dir listing. Imagine!). Funny, I was put off by the "implementation defined" parts of collection() in the specs and earlier discussion on not being able retrieve the dir listing using xslt (assuming something as David shows above as not possible either). This opens up a whole new world of possibilities! And will save me a lot of time, too.

Thanks!

-- Abel Braaksma

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.