Hi all, 

This is my xsl function :
<xsl:stylesheet version="2.0" 
xmlns:java-file="java:java.io.File"
xmlns:java-uri="java:java.net.URI"
         <xsl:function name="igs:file-exists" as="xs:boolean">
<xsl:param name="uri" as="xs:string"/>
<xsl:choose>
<xsl:when test="function-available('java-uri:new')">
<xsl:value-of select="java-file:exists(java-file:new(java-uri:new($uri)))"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="true()"/>
<xsl:message>[ERROR] : java function is not available</xsl:message>
</xsl:otherwise>
</xsl:choose>
</xsl:function>

When using Saxon B (9.1) it works but not under Saxon HE. This is quite normal according to the Saxon HE licence.

The problem is that it throw a compilation error.

Waiting for my company buy SaxonEE I'd like to be able to run my whole xslt with Saxon HE : the function is not available, well go ahead, don't use it but give a alert for this.

Is there a way to achieve this ?

Regards, 
Matthieu.
--
Matthieu Ricaud-Dussarget
IGS-CP - Développeur XML
05 45 37 08 90