Hi all,
I have the following stylesheet:
<xsl:stylesheet
xmlns:xsl="
http://www.w3.org/1999/XSL/Transform"
xmlns:xs="
http://www.w3.org/2001/XMLSchema"
xmlns:file="
http://expath.org/ns/file"
version="2.0"
exclude-result-prefixes="#all"
>
<xsl:template match="/"
>
<xsl:variable name="file"
as="xs:string"
select="string(document-uri(/))"
/>
<test>
<xsl:value-of select="$file"
/>: <xsl:value-of select="file:exists($file)"
/>/<xsl:value-of select="doc-available($file)"
/>
</test>
</xsl:template>
</xsl:stylesheet>
I run it from OxygenXML with the stylesheet itself as the input document.
I expected the result is
<test>file:/Users/Stf/Documents/trash/file-exists.xsl: true/true</test>
but actually it is
<test>file:/Users/Stf/Documents/trash/file-exists.xsl: false/true</test>
Since I get the expected result from Oxygen on Windows, I think there is something wrong with the Mac implementation.
I use XML Editor 15.2, build 2014022718 on Mac OS X 10.9.2 (13C64) with java.version=1.6.0_65. The transformation scenario uses Saxon-PE, and Saxon’s »-ext«-option is checked. There are no errors during the transformation.
Any hints to get the right result?
Thank you,
Stefan