Hi Jeff,
I am guessing here: I note that the absolute path that you use differs
in matters of caps compared to the reported path for the XSLT file, i.e.
d:/rnd vs. D:/RND. May this be part of the problem (though I'd guess
that a non-existing path should return an empty sequence or a different
error)?
Hth,
-- Abel
Jeff Sese wrote:
Hi,
I have this instruction in my xsl:
<xsl:param name="path" as="xs:string" required="yes"/>
<xsl:variable name="docs" as="node()*"
select="collection(concat($path, '?select=*.xml'))"/>
and trying to run it in the command line using:
java net.sf.saxon.Transform -it main xslt\Merge_Sort.xsl mode=body
path=d:/rnd/Berichtigungsliste/sample/input/body >
xslt\BL5-7_body_test.xml
but i get an error of:
Error on line 1 column 1 of
file:///d:/rnd/Berichtigungsliste/sample/input/body:
SXXP0003: Error reported by XML parser: Content is not allowed in
prolog.
Error FODC0005: org.xml.sax.SAXParseException: Content is not allowed
in prolog.
Error on line 6 of file:/D:/RND/Berichtigungsliste/xslt/Merge_Sort.xsl:
FODC0004: Failed to load collection catalogue
d:/rnd/Berichtigungsliste/sample/input/body
Transformation failed: Run-time errors were reported
But when i use a relative path as the value for $path like:
java net.sf.saxon.Transform -it main xslt\Merge_Sort.xsl mode=body
path=../sample/input/body > xslt\BL5-7_body_test.xml
it works... what am i doing wrong here?
Thanks,
Jeff
--~------------------------------------------------------------------
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>
--~--
--~------------------------------------------------------------------
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>
--~--