Hello, Could you help me to answer how to put collection of data as parameter in the xslt file, is it possible ? Thanks.
A:
This:
<xsl:param name="chunks" select="collection('file:///C:/test_xml?*.xml')"/>
loads all of the .xml
files in the C:\text_xml
directory into the parameter chunks
.
Is this what you were looking for?
*Note: This was done using Saxon-PE 9.2
DevNull
2010-07-27 07:53:34
something like this but without extension(or .net extension)
jitm
2010-07-27 12:21:29
A:
In .Net you need to pass a XsltArgumentList
object to the Transform
method as described here:
Alejandro
2010-07-27 15:34:11
I know about XsltArgumentList and also, it is extension of .net platform, I'll try example with collection()
jitm
2010-07-28 12:38:42
@jitm: Well, but you have accepted an answer for XSLT 2.0 processor (as `collection` is a core function from XPath 2.0), something VS is not.
Alejandro
2010-07-28 12:59:23