http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1287 *** shadow/1287 Sun May 20 17:24:57 2001 --- shadow/1287.tmp.1220 Sat Jul 7 09:32:58 2001 *************** *** 1,19 **** ! Bug#: 1287 ! Product: XalanJ2 ! Version: 2.0.1 ! Platform: All ! OS/Version: Linux ! Status: NEW ! Resolution: ! Severity: Major ! Priority: Medium ! Component: org.apache.xalan.processor ! AssignedTo: [EMAIL PROTECTED] ! ReportedBy: [EMAIL PROTECTED] ! URL: ! Cc: ! Summary: <xsl:import>'d documents do not correctly identify absolute file paths (without using file:// uri) ! When using an XSL document that <xsl:import> another, the file name was incorreclty munged: --- 1,18 ---- ! +============================================================================+ ! | <xsl:import>'d documents do not correctly identify absolute file paths (wi | ! +----------------------------------------------------------------------------+ ! | Bug #: 1287 Product: XalanJ2 | ! | Status: NEW Version: 2.0.1 | ! | Resolution: Platform: All | ! | Severity: Major OS/Version: Linux | ! | Priority: Medium Component: org.apache.xalan.proces | ! +----------------------------------------------------------------------------+ ! | Assigned To: [EMAIL PROTECTED] | ! | Reported By: [EMAIL PROTECTED] | ! +----------------------------------------------------------------------------+ ! | URL: | ! +============================================================================+ ! | DESCRIPTION | When using an XSL document that <xsl:import> another, the file name was incorreclty munged: *************** *** 123,125 **** --- 122,143 ---- IMHO it should not prepend the CWD if it starts with the 'java.path.separator', or to allow for M$ cases, ?:'java.path.separator' + + ------- Additional Comments From [EMAIL PROTECTED] 2001-07-07 09:32 ------- + I've noticed a similar problem with TransformerFactory.getAssociatedStylesheet() + on Unix platforms. This is the code I use: + + StreamSource source = new StreamSource(sourceName); + TransformerFactory factory = TransformerFactory.newInstance(); + Source style = factory.getAssociatedStylesheet(source, null, null, null); + Transformer transformer = factory.newTransformer(style); + transformer.transform(source, new StreamResult(writer)); + My XML document provides: + + <?xml-stylesheet href="../style/books.xsl" type="text/xsl"?> + + This works fine on Windows, but on Unix I get something like: + + File + "file:////usr/local/tomcat-3.2.1/webapps//home/http/html/blah/style/books.xsl" + not found.
