at org.apache.xalan.transformer.TransformerImpl.createSerializationHandler(TransformerImpl.java:1137) at org.apache.xalan.transformer.TransformerImpl.createSerializationHandler(TransformerImpl.java:981) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1187) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1170) at TransformFiles.main(TransformFiles.java:45)
That's weird. Try to specify a fully qualified path name to the arg2 and see what happens. I'm having a similar problem - the transformer stuff doesn't work when there are imbedded spaces in the path (i.e. c:\documents and settings... in a Windows env.) Temp files as such don't work unless you specify a directory that you know exists (like root) in your file constructor. So it's not really portable as such.
Joined: Jun 02, 2000
Oh, and you need to create a new file - you just created a handle
Joined: Aug 09, 2002
HI Paul, Thanks for your reply. But I tried all those options like giving full path, "./input.xsl". Regarding output.xml I tried both options like using existing file and giving a new file name. in all cases it is failing with same exception.
Strange thing is: If I use System.out instead of a file like