Hi Frank,
I cannot reproduce your problem, I get the correct answer both from
oXygen and from command line.
You may update the stylesheet to report also the Saxon version adding
for instance:
<xsl:comment select="system-property('xsl:product-name')"/>
<xsl:comment select="system-property('xsl:product-version')"/>
That may give some more information.
And it will help if you can show what you get exactly, use for instance
java -jar saxon8.jar -o testp.xml test.xml myxslt.xsl
then
type myxslt.xsl
type testp.xml
type C:/any.xml
and show the output of the type commands.
Best Regards,
George
---------------------------------------------------------------------
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Frank Marent wrote:
hi all.
is it a known issue (feature, misunderstanding from me?) that this xslt
(myxslt.xsl)
<?xml version="1.0"?>
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:comment select="doc-available('file:/C:/any.xml')/>
</xsl:template>
</xsl:stylesheet>
reports *true* when run from within i.e. oxygen xml editor (running
saxon) but reports *false* when started as
java -jar saxon8.jar -o testp.xml test.xml myxslt.xsl ...?
i'm running it on windows xp on a user with all administrator rights
started from command line. the file any.xml is at the right place. the
same thing is with addressing subfolders. the base xml file test.xml is
without any relevant content.
but: the xslt run through saxon8.jar reports *true* when any.xml is in
the *same folder* like myxslt.xsl and the comment selects
...
<xsl:comment select="doc-available('any.xml')/>
...
and also reports true even when calling
...
<xsl:comment
select="doc-available('file:/C:/...the_path_to_the_myxslt.../any.xml')/>
...
thanks for any appriciated help. this must be a mistake by me i guess.
frank
--~------------------------------------------------------------------
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>
--~--