xsl-list
[Top] [All Lists]

[xsl] XSLT collection function to get filenames

2008-03-16 06:48:47

Friends,

If the following:

    <x:for-each select="collection('?select=*.xml')">
        <br /><x:value-of select="//h1" />
    </x:for-each>

will print the value of 'h1' tags of each document with extension .xml in the current directory, then how can I get it to print/capture the filename itself of each file?

For instance, if my directory holds the files a.xml, b.xml, c.xml,
I want the template to captur in a variable or select statement, those names.

Any help greatly appreciated!

Arno R.

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