Well, your original code was generating a legal URI by using resolve-uri() to combine the local name and base URI, so the format of the URI wasn't the problem. But if you've found an approach that works, that's fine!

Michael Kay
Saxonica

On 10 Sep 2013, at 20:05, Terry wrote:

I was working through John's suggestions, and he has solved the problem. 

I needed the <file:> and three slashes, because I am working in the Windows environment.

Thank you for the assistance.

-- terry

* * * * * * * * * * * * * * *
<xsl:if test="java:file-exists( $dataFile, 'file:F:/shapeFiles/' )" >
---------------------------------------------------------------------
net.sf.saxon.trans.XPathException: Exception in extension function
     {public java.io.File(java.net.URI)}: java.lang.IllegalArgumentException: URI is not absolute
Exception in extension function {public java.io.File(java.net.URI)}: 
      java.lang.IllegalArgumentException: URI is not absolute

* * * * * * * * * * * * * * *
<xsl:if test="java:file-exists( $dataFile, 'file://F:/shapeFiles/' )" >
-----------------------------------------------------------------------
net.sf.saxon.trans.XPathException: Exception in extension function
     {public java.io.File(java.net.URI)}: java.lang.IllegalArgumentException: URI has an authority component
Exception in extension function {public java.io.File(java.net.URI)}:
       java.lang.IllegalArgumentException: URI has an authority component

* * * * * * * * * * * * * * *
<xsl:if test="java:file-exists( $dataFile, 'file:///F:///shapeFiles/' )" >
--------------------------------------------------------------------------
works!!




------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help