[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Need xml dir list by dc:title
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. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|