Hi all, 

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

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 ?

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