[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Mark Wilson pubs@xxxxxxxxxxxx wrote:
I think you want
collection('docs?select=*.xml')
see http://saxonica.com/html/documentation/sourcedocs/collections.html
Re: [xsl] Using 'collection'
Subject: Re: [xsl] Using 'collection' From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Sat, 29 Aug 2015 09:04:19 -0000 |
Mark Wilson pubs@xxxxxxxxxxxx wrote:
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
I think you want
collection('docs?select=*.xml')
see http://saxonica.com/html/documentation/sourcedocs/collections.html
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Using 'collection', Mark Wilson pubs@xxx | Thread | Re: [xsl] Using 'collection', Mark Wilson pubs@xxx |
[xsl] Using 'collection', Mark Wilson pubs@xxx | Date | Re: [xsl] Using 'collection', Mark Wilson pubs@xxx |
Month |