Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - [xsl] Directory listing, as xml file [Thread Next] Re: [xsl] Directory listing, as xml fileTo: Date: 6/1/2008 5:44:00 PM >>>>> "Michael" == Michael Kay <mike@xxxxxxxxxxxx> writes:
>> Any suggestions how this might be done (mostly) with xslt?
Michael> I think that all three currently-available XSLT 2.0
Michael> processors allow you to do
Michael> <xsl:for-each select="collection('file:///temp/dir')">
Michael> <xi:include href="document-uri(.)"/> </xsl:for-each>
Gestalt won't - it returns directory entry names (file names or
directory names).
Michael> though it's a bit painful as it's likely to involve
Michael> actually parsing each of the documents in the collection,
Michael> which is of course unnecessary if you only want the
Michael> names.
Which is one reason I don't do it like that.
--
Colin Adams
Preston Lancashire | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
