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

XSLT collection function to get filenames

Subject: XSLT collection function to get filenames
From: "Arno H.P. Reuser" <a@xxxxxxxxxx>
Date: Sun, 16 Mar 2008 14:48:12 +0100
 XSLT collection function to get filenames
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.

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.