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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to