Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] Directory listing, as xml file

From: Dave Pawson <davep@------------->
To:
Date: 6/1/2008 5:55:00 PM
Colin Paul Adams wrote:
"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.





So it can be done with an extension.
I only want the *.xml files, so it would seem that
some OS specific listing, parsed in as an text entity
with a regex is likely
to be the simpler way, if only to get the globbing.

Thanks for the suggestions.



Colin, had you thought about taking yours further?
temp/dir/*.xml etc?





regards



--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent