From: Wolfgang M. M. <wol...@us...> - 2004-09-12 13:12:43
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist/xquery/functions/transform In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4679/src/org/exist/xquery/functions/transform Modified Files: Transform.java Log Message: Replaced all occurrences of new URI(file.toURL().toString()).toASCIIString(); to file.toURI().toASCIIString(); (patch by Piotr). Index: Transform.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/xquery/functions/transform/Transform.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** Transform.java 12 Sep 2004 09:25:22 -0000 1.9 --- Transform.java 12 Sep 2004 13:12:22 -0000 1.10 *************** *** 169,185 **** if(stylesheet.indexOf(':') < 0) { File f = new File(stylesheet); ! if(f.canRead()) ! try { ! stylesheet = new URI(f.toURL().toString()).toASCIIString(); ! } catch (Exception e1) { ! } else { stylesheet = context.getBaseURI() + File.separatorChar + stylesheet; f = new File(stylesheet); ! if(f.canRead()) ! try { ! stylesheet = f.toURL().toString(); ! } catch (MalformedURLException e2) { ! } } } --- 169,177 ---- if(stylesheet.indexOf(':') < 0) { File f = new File(stylesheet); ! if(f.canRead()) stylesheet = f.toURI().toASCIIString(); else { stylesheet = context.getBaseURI() + File.separatorChar + stylesheet; f = new File(stylesheet); ! if(f.canRead()) stylesheet = f.toURI().toASCIIString(); } } |