Update of /cvsroot/exist/eXist-1.0/src/org/exist/xquery/functions/transform
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2156/src/org/exist/xquery/functions/transform
Modified Files:
Transform.java
Log Message:
A large number of XUpdate bugs has been fixed.
Index: Transform.java
===================================================================
RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/xquery/functions/transform/Transform.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** Transform.java 2 Mar 2004 12:51:23 -0000 1.5
--- Transform.java 23 Apr 2004 13:07:48 -0000 1.6
***************
*** 26,29 ****
--- 26,30 ----
import java.io.IOException;
import java.net.MalformedURLException;
+ import java.net.URI;
import java.net.URL;
import java.net.URLConnection;
***************
*** 168,177 ****
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();
}
}
--- 169,184 ----
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) {
! }
}
}
|