xalan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zong...@apache.org
Subject cvs commit: xml-xalan/java/src/org/apache/xalan/transformer TransformerIdentityImpl.java
Date Tue, 05 Jul 2005 17:55:44 GMT
zongaro     2005/07/05 10:55:44

  Modified:    java/src/org/apache/xalan/transformer
                        TransformerIdentityImpl.java
  Log:
  Patch for Jira issue XALANJ-1978.  Reviewed by Christine Li
  (jycli () ca ! ibm ! com).
  
  Behaviour of StreamResult.getSystemId has changed if the Result object was
  created using a File.  The URI returned begins with "file:/" where it used to
  begin with "file:///".  TransformerIdentityImpl had a dependency on the old
  behaviour.
  
  Revision  Changes    Path
  1.37      +11 -5     xml-xalan/java/src/org/apache/xalan/transformer/TransformerIdentityImpl.java
  
  Index: TransformerIdentityImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/transformer/TransformerIdentityImpl.java,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- TransformerIdentityImpl.java	7 Jun 2005 15:35:52 -0000	1.36
  +++ TransformerIdentityImpl.java	5 Jul 2005 17:55:44 -0000	1.37
  @@ -269,12 +269,18 @@
           {
             String fileURL = sresult.getSystemId();
   
  -          if (fileURL.startsWith("file:///"))
  -          {
  -            if (fileURL.substring(8).indexOf(":") >0)
  +          if (fileURL.startsWith("file:///")) {
  +            if (fileURL.substring(8).indexOf(":") >0) {
                 fileURL = fileURL.substring(8);
  -            else 
  +            } else  {
                 fileURL = fileURL.substring(7);
  +            }
  +          } else if (fileURL.startsWith("file:/")) {
  +            if (fileURL.substring(6).indexOf(":") >0) {
  +              fileURL = fileURL.substring(6);
  +            } else {
  +              fileURL = fileURL.substring(5);
  +            }
             }
   
             m_outputStream = new java.io.FileOutputStream(fileURL);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org


Mime
View raw message