From: "Philip Vallone" <philip(_dot_)vallone(_at_)verizon(_dot_)net>
Hi list,
Can some one show me some simple examples of the collection()?
For example:
<xsl:template match="/">
<xsl:for-each
select="collection('file://c:/xmlfiles/?select=*.xml')">
Do something with each XML file...
</xsl:for-each>
</xsl:template>
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.
http://www.theconspiracygame.co.uk/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--