Index: gnu/xml/transform/TransformerImpl.java =================================================================== RCS file: /cvsroot/classpath/classpath/gnu/xml/transform/TransformerImpl.java,v retrieving revision 1.5 diff -u -r1.5 TransformerImpl.java --- gnu/xml/transform/TransformerImpl.java 9 Jul 2005 20:38:35 -0000 1.5 +++ gnu/xml/transform/TransformerImpl.java 30 Sep 2005 07:09:59 -0000 @@ -1,5 +1,5 @@ /* TransformerImpl.java -- - Copyright (C) 2004 Free Software Foundation, Inc. + Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -505,6 +505,12 @@ { URL url = new URL(systemId); URLConnection connection = url.openConnection(); + // We need to call setDoInput(false), because our + // implementation of the file protocol allows writing + // (unlike Sun), but it will fail with a FileNotFoundException + // if we also open the connection for input and the output + // file doesn't yet exist. + connection.setDoInput(false); connection.setDoOutput(true); out = connection.getOutputStream(); }