XSLT has no way to read your directory, so you are going to have to
"adulterate" your "pure XML/XSL solution" to some degree if the file names and
the number of files in the directory could change. If the set of files you want
to serve is static, then you can create an XML document containing those file
names by hand (Does that count as a "pure XML/XSL solution"?) and refer to it
in your XSLT stylesheet with the document() function. You could then do a
<xsl:for-each> over the nodes in this document to open each with a second
document() function which will create a new node tree for each of the
documents. You can then use XPath to extract the value of each <dc:title>
element in each of the secondary documents.
If the set of files you want to server is not static, then you will have to
find a non-XML/XSLT way to generate the file name list XML document, or create
a node list of these file names and pass it to the XSLT transformation as a
parameter to be processed by the stylesheet. Of course, that means you need to
be able to execute code on your host, which I sense you're telling us that you
can't do.
--
Charles Knell
cknell(_at_)onebox(_dot_)com - email
-----Original Message-----
From: hgadm(_at_)cswebmail(_dot_)com
Sent: Tue, 22 Jul 2003 07:20:36 -0700 (PDT)
To: XSL-List(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Need xml dir list by dc:title
Dear all,
I want to provide a (dynamically generated) HTML page
with links to all XML files in a given directory.
The links should however not named by the xml file name
but with the <dc:title> element of these xml files.
I've got a nice solution with cocoon using the
XPathFileGenerator, but I cannot run Cocoon in the
current environment so I would need a pure XML/XSL
solution.
Any help is greatly appreciated !
-Holger
___________________________________________________
The ALL NEW CS2000 from CompuServe
Better! Faster! More Powerful!
250 FREE hours! Sign-on Now!
http://www.compuserve.com/trycsrv/cs2000/webmail/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list