You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by cu...@apache.org on 2002/01/14 16:03:13 UTC

cvs commit: xml-xalan/java/src/org/apache/xalan/xslt Process.java

curcuru     02/01/14 07:03:12

  Modified:    java/src/org/apache/xalan/xslt Process.java
  Log:
  Fix Bugzilla#4678 and Bugzilla#5533: call setSystemId on StreamResult
  in Process command line class; ignored if using System.out
  This should enable the redirect extension to properly put it's redirected
  output in a location relative to the output if possible; previously it
  always put redirected output relative to the input since it
  never had the systemId of where the output should be
  
  Revision  Changes    Path
  1.46      +5 -0      xml-xalan/java/src/org/apache/xalan/xslt/Process.java
  
  Index: Process.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xslt/Process.java,v
  retrieving revision 1.45
  retrieving revision 1.46
  diff -u -r1.45 -r1.46
  --- Process.java	10 Dec 2001 20:49:47 -0000	1.45
  +++ Process.java	14 Jan 2002 15:03:12 -0000	1.46
  @@ -624,6 +624,11 @@
           if (null != outFileName)
           {
             strResult = new StreamResult(new FileOutputStream(outFileName));
  +          // One possible improvement might be to ensure this is 
  +          //  a valid URI before setting the systemId, but that 
  +          //  might have subtle changes that pre-existing users 
  +          //  might notice; we can think about that later -sc r1.46
  +          strResult.setSystemId(outFileName);
           }
           else
           {
  
  
  

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