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

Using 'collection'

Subject: Using 'collection'
From: "Mark Wilson pubs@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 29 Aug 2015 08:58:04 -0000
 Using 'collection'
Clearly I do not know what I am doing or am misunderstanding what Michael's XSLT 2.0 book is saying. can anyone help?

I have to extract information from a collection of 8000 individual xml files. It has been a couple of years since I have used xslt, so while not a novice, I am very rusty. Where 'docs' is a sub-directory of the directory 'British Library' where my xslt is located and contains a set of files of the format *.xml, I wrote this xslt 2.0 stylesheet:

  <xsl:template match="/">
      <xsl:variable name="library" select="collection('docs/*.xml')"/>

</xsl:template>

and got the error in Oxygen:
System ID: P:\British Library\read.xsl
Severity: fatal
Description: FODC0002: The file or directory file:/P:/British%20Library/docs/*.xml does not exist
Start location: 8:0
URL: http://www.w3.org/TR/2005/WD-xpath-functions-20050211/#ERRFODC0002


System ID: P:\British Library\read.xsl
Severity: error
Description: FODC0002: The file or directory file:/P:/British%20Library/docs/*.xml does not exist
Start location: 8:0
URL: http://www.w3.org/TR/2005/WD-xpath-functions-20050211/#ERRFODC0002


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.