http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2731

*** shadow/2731 Sun Jul 22 07:03:53 2001
--- shadow/2731.tmp.22930       Sun Jul 22 07:03:53 2001
***************
*** 0 ****
--- 1,63 ----
+ +============================================================================+
+ | Leading slash omitted -> file not found                                    |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 2731                        Product: XalanJ2                 |
+ |       Status: NEW                         Version: 2.2.x                   |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Blocker                  OS/Version: Linux                   |
+ |     Priority: Other                     Component: javax.xml               |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: [EMAIL PROTECTED]                                     |
+ |  Reported By: [EMAIL PROTECTED]                              |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/xweb/XWeb/net |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ When I try to use Xalan with TRAX to create a file in a local directory it 
+ fails since the leading slash is dropped and thus the output location not 
+ found. Here is a code fragment (see URL for full file):
+ 
+ <code>
+    java.io.PrintWriter tester = new java.io.PrintWriter(
+                                   new java.io.FileOutputStream(
+                                      new File( _targetFileName + ".test" )));
+    tester.println("test");
+    tester.flush();
+    transformer.transform( new DOMSource( w3cdoc ),
+                                   new StreamResult(
+                                         new File( _targetFileName ) ) );
+ </code>
+ 
+ Here is the exception:
+ 
+ <output>
+ java.io.FileNotFoundException: mnt/disk5/home/pbecker/temp/xweb/xweb-
+ 0.4/website/output/overview/index.html (No such file or directory)
+         at java.io.FileOutputStream.open(Native Method)
+         at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
+         at java.io.FileOutputStream.<init>(FileOutputStream.java:62)
+         at 
+ org.apache.xalan.transformer.TransformerImpl.createResultContentHandler
+ (TransformerImpl.java:1017)
+         at 
+ org.apache.xalan.transformer.TransformerImpl.createResultContentHandler
+ (TransformerImpl.java:928)
+         at org.apache.xalan.transformer.TransformerImpl.transform
+ (TransformerImpl.java:1074)
+         at org.apache.xalan.transformer.TransformerImpl.transform
+ (TransformerImpl.java:1057)
+         at net.sourceforge.xweb.backend.documents.XSLDocument.processDocument
+ (XSLDocument.java:247)
+         at net.sourceforge.xweb.backend.WebsiteProcessor.processDocuments
+ (WebsiteProcessor.java:581)
+         at net.sourceforge.xweb.backend.WebsiteProcessor.processWebsite
+ (WebsiteProcessor.java:142)
+         at net.sourceforge.xweb.backend.WebsiteProcessor.main
+ (WebsiteProcessor.java:674)
+ </output>
+ 
+ The test code produces the correct output file, Saxon handles the code 
+ correctly, so I assume this is a Xalan bug. It works on Windows, but not on 
+ Linux (i386, Sun JDK 1.3.0). I can try other JDKs, Solaris and Linux/Sparc if 
+ this should help.

Reply via email to