xalan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From santiag...@apache.org
Subject cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc/trax Util.java
Date Fri, 08 Apr 2005 11:40:59 GMT
santiagopg    2005/04/08 04:40:59

  Modified:    java/src/org/apache/xalan/xsltc/trax Util.java
  Log:
  Clear XML reader for the case in which them main stylesheet is passed using a DOMSource.
This fixes the problem of trying to use a DOM2SAX reader for included/imported stylesheets
that are resolved by user-defined URI resovers.
  
  Revision  Changes    Path
  1.11      +2 -1      xml-xalan/java/src/org/apache/xalan/xsltc/trax/Util.java
  
  Index: Util.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/trax/Util.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- Util.java	16 Feb 2004 22:57:21 -0000	1.10
  +++ Util.java	8 Apr 2005 11:40:59 -0000	1.11
  @@ -148,6 +148,7 @@
   		final StreamSource stream = (StreamSource)source;
   		final InputStream istream = stream.getInputStream();
   		final Reader reader = stream.getReader();
  +                xsltc.setXMLReader(null);     // Clear old XML reader
   
   		// Create InputSource from Reader or InputStream in Source
   		if (istream != null) {
  
  
  

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