[oXygen-user] Problem with Saxon's EXPath/file:exists on Mac

Stefan Krause stefan.krause at editura.de
Sat Mar 22 08:15:54 CDT 2014


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




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20140322/e08c88b6/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
Url : http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20140322/e08c88b6/attachment.bin 


More information about the oXygen-user mailing list