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

Re: Need xml dir list by dc:title

Subject: Re: Need xml dir list by dc:title
From: "Mark R. Diggory" <mdiggory@xxxxxxxxxxxxxxxxx>
Date: Tue, 22 Jul 2003 11:40:12 -0400
create xml list
Couldn't you somehow use an "index.xml" document that just uses XML includes for each file in the directory? Then when your parse this document the dc:titles would be available by the xsl transform. Unfortunately this would result in one large DOM representing all the contents of the files in the directory.

This would also make the rendering limited to parsers that support XML includes.

-MArk Dggory


cknell@xxxxxxxxxx wrote:


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.


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


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.