xalan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mk...@apache.org
Subject cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc/trax TransformerImpl.java
Date Wed, 18 Sep 2002 16:04:29 GMT
mkwan       2002/09/18 09:04:29

  Modified:    java/src/org/apache/xalan/xsltc/trax Tag: XSLTC_DTM
                        TransformerImpl.java
  Log:
  Set the systemId when creating an InputSource from an InputStream or a Reader.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.37.2.6  +7 -3      xml-xalan/java/src/org/apache/xalan/xsltc/trax/TransformerImpl.java
  
  Index: TransformerImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/trax/TransformerImpl.java,v
  retrieving revision 1.37.2.5
  retrieving revision 1.37.2.6
  diff -u -r1.37.2.5 -r1.37.2.6
  --- TransformerImpl.java	12 Sep 2002 16:07:36 -0000	1.37.2.5
  +++ TransformerImpl.java	18 Sep 2002 16:04:29 -0000	1.37.2.6
  @@ -445,10 +445,14 @@
                    org.apache.xpath.objects.XMLStringFactoryImpl.getFactory());
   
   		InputSource input;
  -		if (streamInput != null)
  +		if (streamInput != null) {
   		    input = new InputSource(streamInput);
  -		else if (streamReader != null)
  +		    input.setSystemId(_sourceSystemId);
  +		}
  +		else if (streamReader != null) {
   		    input = new InputSource(streamReader);
  +		    input.setSystemId(_sourceSystemId);
  +		}
   		else if (_sourceSystemId != null)
   		    input = new InputSource(_sourceSystemId);
   		else {
  
  
  

---------------------------------------------------------------------
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