RE: [xsl] Using the collection()

Subject: RE: [xsl] Using the collection()
From: "Colin Adams" <colinpauladams@xxxxxxxxxxx>
Date: Sat, 10 Mar 2007 11:51:33 +0000
From: "Philip Vallone" <philip.vallone@xxxxxxxxxxx>

Hi list,

Can some one show me some simple examples of the collection()?

For example:

<xsl:template match="/">
		Do something with each XML file...

This returns an error -"Available collections provides no mapping for the
string - 'file://c:/xmlfiles/?select=*.xml'

I am trying to learn how to use this function. Right now I have an XML file
that list all the xml files in a directory and I use the document(). I would
like to learn how to use collection().

Note that the meaning of the URI argument to the collection function is implementation-dependent.

Judging by the URI used, you are using Saxon, so the Saxon list would be a place to pursue this.
However, i think you just need to add a third slash after file: .

Solve the Conspiracy and win fantastic prizes.

Current Thread