cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@locus.apache.org
Subject cvs commit: xml-cocoon/src/org/apache/cocoon/transformer XalanTransformer.java
Date Mon, 31 Jan 2000 21:53:20 GMT
stefano     00/01/31 13:53:19

  Modified:    src/org/apache/cocoon Engine.java cocoon.properties
               src/org/apache/cocoon/interpreter/ecmascript
                        EcmaScriptModule.java
               src/org/apache/cocoon/parser AbstractParser.java Parser.java
                        SunXMLParser.java XercesParser.java
               src/org/apache/cocoon/processor/xslt XSLTProcessor.java
               src/org/apache/cocoon/processor/xsp XSPProcessor.java
                        xsp-java.xsl
               src/org/apache/cocoon/transformer XalanTransformer.java
  Log:
  fixed validation support. Before it didn't work because we didn't set
  the error handler and nobody was catching the error events.
  
  NOTE: since stylesheet validation is a pain in the ass, it's turned off.
  
  Revision  Changes    Path
  1.11      +17 -16    xml-cocoon/src/org/apache/cocoon/Engine.java
  
  Index: Engine.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/Engine.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- Engine.java	2000/01/23 23:16:21	1.10
  +++ Engine.java	2000/01/31 21:53:12	1.11
  @@ -1,4 +1,4 @@
  -/*-- $Id: Engine.java,v 1.10 2000/01/23 23:16:21 stefano Exp $ --
  +/*-- $Id: Engine.java,v 1.11 2000/01/31 21:53:12 stefano Exp $ --
   
    ============================================================================
                      The Apache Software License, Version 1.1
  @@ -72,7 +72,7 @@
    * This class implements the engine that does all the document processing.
    *
    * @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
  - * @version $Revision: 1.10 $ $Date: 2000/01/23 23:16:21 $
  + * @version $Revision: 1.11 $ $Date: 2000/01/31 21:53:12 $
    */
   
   public class Engine implements Defaults {
  @@ -309,24 +309,25 @@
           } else {
               // set the response content type
               response.setContentType(page.getContentType());
  -	        // get the output writer
  -        	PrintWriter out = response.getWriter();
   
  -			// send the page
  +            // get the output writer
  +            PrintWriter out = response.getWriter();
  +
  +            // send the page
               out.println(page.getContent());
   
  -	        // if verbose mode is on the the output type allows it
  -	        // print some processing info as a comment
  -	        if (VERBOSE && (page.isText())) {
  -	            time = System.currentTimeMillis() - time;
  -	            out.println("<!-- This page was served "
  -	                + (page.isCached() ? "from cache " : "")
  -	                + "in " + time + " milliseconds by "
  -	                + Cocoon.version() + " -->");
  -	        }
  +            // if verbose mode is on the the output type allows it
  +            // print some processing info as a comment
  +            if (VERBOSE && (page.isText())) {
  +                time = System.currentTimeMillis() - time;
  +                out.println("<!-- This page was served "
  +                    + (page.isCached() ? "from cache " : "")
  +                    + "in " + time + " milliseconds by "
  +                    + Cocoon.version() + " -->");
  +            }
   
  -	        // send all content so that client doesn't wait while caching.
  -	        out.flush();
  +            // send all content so that client doesn't wait while caching.
  +            out.flush();
           }
   
           // cache the created page.
  
  
  
  1.11      +2 -1      xml-cocoon/src/org/apache/cocoon/cocoon.properties
  
  Index: cocoon.properties
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/cocoon.properties,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- cocoon.properties	2000/01/05 19:51:15	1.10
  +++ cocoon.properties	2000/01/31 21:53:13	1.11
  @@ -228,4 +228,5 @@
   browser.2 = lynx=Lynx
   browser.3 = java=Java
   browser.4 = wap=Nokia-WAP-Toolkit
  -browser.5 = netscape=Mozilla
  +browser.5 = wap=UP
  +browser.6 = netscape=Mozilla
  
  
  
  1.5       +4 -4      xml-cocoon/src/org/apache/cocoon/interpreter/ecmascript/EcmaScriptModule.java
  
  Index: EcmaScriptModule.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/interpreter/ecmascript/EcmaScriptModule.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- EcmaScriptModule.java	1999/12/14 23:43:58	1.4
  +++ EcmaScriptModule.java	2000/01/31 21:53:14	1.5
  @@ -1,4 +1,4 @@
  -/*-- $Id: EcmaScriptModule.java,v 1.4 1999/12/14 23:43:58 stefano Exp $ -- 
  +/*-- $Id: EcmaScriptModule.java,v 1.5 2000/01/31 21:53:14 stefano Exp $ -- 
   
    ============================================================================
                      The Apache Software License, Version 1.1
  @@ -59,7 +59,7 @@
   
   /**
    * @author <a href="mailto:rrocha@plenix.org">Ricardo Rocha</a>
  - * @version $Revision: 1.4 $ $Date: 1999/12/14 23:43:58 $
  + * @version $Revision: 1.5 $ $Date: 2000/01/31 21:53:14 $
    */
   
   public class EcmaScriptModule implements Module {
  @@ -74,7 +74,7 @@
   
     private static String initScript = null;
     private static URL url = null;
  -  private static final String INIT_SCRIPT = "org/apache/cocoon/interpreter/ecmascript/initScript.es";
  +  private static final String INIT_SCRIPT = "initScript.es";
   
     long lastModified;
     private File scriptFile;
  @@ -92,7 +92,7 @@
       // Load init script from resource file
       try {
           if (initScript == null) {
  -            initScript = getFileContents(ClassLoader.getSystemResourceAsStream(INIT_SCRIPT));
  +            initScript = getFileContents(EcmaScriptModule.class.getResourceAsStream(INIT_SCRIPT));
           }
       } catch (Exception e) {
           throw new LanguageException("Could not find ECMAScript initialization file. The
archive is probably damaged: " + e.toString());
  
  
  
  1.3       +56 -5     xml-cocoon/src/org/apache/cocoon/parser/AbstractParser.java
  
  Index: AbstractParser.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/parser/AbstractParser.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- AbstractParser.java	1999/12/16 11:43:51	1.2
  +++ AbstractParser.java	2000/01/31 21:53:15	1.3
  @@ -1,4 +1,4 @@
  -/*-- $Id: AbstractParser.java,v 1.2 1999/12/16 11:43:51 stefano Exp $ -- 
  +/*-- $Id: AbstractParser.java,v 1.3 2000/01/31 21:53:15 stefano Exp $ -- 
   
    ============================================================================
                      The Apache Software License, Version 1.1
  @@ -51,20 +51,71 @@
   
   package org.apache.cocoon.parser;
   
  +import java.io.*;
  +import org.w3c.dom.*;
   import org.apache.cocoon.framework.*;
   
  +import org.xml.sax.InputSource;
  +import org.xml.sax.ErrorHandler;
  +import org.xml.sax.SAXException;
  +import org.xml.sax.SAXParseException;
  +
   /**
    * This class implements all the common methods used by the XML parsers.
    *
    * @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
  - * @version $Revision: 1.2 $ $Date: 1999/12/16 11:43:51 $
  + * @version $Revision: 1.3 $ $Date: 2000/01/31 21:53:15 $
    */
   
  -public abstract class AbstractParser implements Parser, Configurable {
  +public abstract class AbstractParser implements ErrorHandler, Parser, Configurable {
       
  -    protected boolean validate;
  +    protected boolean validation;
       
       public void init(Configurations conf) {
  -        this.validate = "true".equals(((String) conf.get("validate")).toLowerCase()); 
  +        this.validation = "true".equals(((String) conf.get("validate")).toLowerCase());

  +    }
  +
  +    /**
  +     * Creates a DOM tree parsing the given input source and using the 
  +     * given entity resolver.
  +     */
  +    public Document parse(InputSource input) throws SAXException, IOException {
  +        return parse(input, validation);
  +    }
  +        
  +    /**
  +     * Receive notification of a recoverable error.
  +     *
  +     * @param e The Exception thrown during parsing.
  +     * @exception SAXException The Exception notifying the client.
  +     */
  +    public void error(SAXParseException e) throws SAXException {
  +        throw new SAXException(e.getMessage()+" [ERROR] [File: \"" + e.getSystemId() +
  +                               "\" Line: " + e.getLineNumber() + " Column: " +
  +                               e.getColumnNumber() + "]", e);
       }
  +
  +    /**
  +     * Receive notification of a non-recoverable error.
  +     *
  +     * @param e The Exception thrown during parsing.
  +     * @exception SAXException The Exception notifying the client.
  +     */
  +    public void fatalError(SAXParseException e) throws SAXException {
  +        throw new SAXException(e.getMessage()+" [FATAL ERROR] [File: \"" + e.getSystemId()
+
  +                               "\" Line: " + e.getLineNumber() + " Column: " +
  +                               e.getColumnNumber() + "]", e);
  +    }
  +
  +    /**
  +     * Receive notification of a warning.
  +     *
  +     * @param e The Exception thrown during parsing.
  +     * @exception SAXException The Exception notifying the client.
  +     */
  +    public void warning(SAXParseException e) throws SAXException {
  +        throw new SAXException(e.getMessage()+" [WARNING] [File: \"" + e.getSystemId()
+
  +                               "\" Line: " + e.getLineNumber() + " Column: " +
  +                               e.getColumnNumber() + "]", e);
  +    }    
   }
  
  
  
  1.6       +9 -3      xml-cocoon/src/org/apache/cocoon/parser/Parser.java
  
  Index: Parser.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/parser/Parser.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- Parser.java	1999/12/16 11:43:51	1.5
  +++ Parser.java	2000/01/31 21:53:15	1.6
  @@ -1,4 +1,4 @@
  -/*-- $Id: Parser.java,v 1.5 1999/12/16 11:43:51 stefano Exp $ -- 
  +/*-- $Id: Parser.java,v 1.6 2000/01/31 21:53:15 stefano Exp $ -- 
   
    ============================================================================
                      The Apache Software License, Version 1.1
  @@ -61,7 +61,7 @@
    * parsing capabilites in order to be used by Cocoon.
    *
    * @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
  - * @version $Revision: 1.5 $ $Date: 1999/12/16 11:43:51 $
  + * @version $Revision: 1.6 $ $Date: 2000/01/31 21:53:15 $
    */
   
   public interface Parser {
  @@ -71,7 +71,13 @@
        * given entity resolver.
        */
       public Document parse(InputSource input) throws SAXException, IOException;
  -    
  +
  +    /**
  +     * Creates a DOM tree parsing the given input source and using the 
  +     * given entity resolver.
  +     */
  +    public Document parse(InputSource input, boolean validate) throws SAXException, IOException;
  +        
       /**
        * Creates an empty DOM tree.
        */
  
  
  
  1.5       +4 -4      xml-cocoon/src/org/apache/cocoon/parser/SunXMLParser.java
  
  Index: SunXMLParser.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/parser/SunXMLParser.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- SunXMLParser.java	1999/11/30 16:30:08	1.4
  +++ SunXMLParser.java	2000/01/31 21:53:15	1.5
  @@ -12,7 +12,7 @@
    * 'Technology Release 1'.
    *
    * @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
  - * @version $Revision: 1.4 $ $Date: 1999/11/30 16:30:08 $
  + * @version $Revision: 1.5 $ $Date: 2000/01/31 21:53:15 $
    */
   
   public class SunXMLParser extends AbstractParser implements Status {
  @@ -20,7 +20,7 @@
       /**
        * Creates a DOM tree parsing the given input source.
        */
  -    public Document parse(InputSource input) throws SAXException, IOException {
  +    public Document parse(InputSource input, boolean validate) throws SAXException, IOException
{
         	org.xml.sax.Parser parser;
           XmlDocumentBuilder builder;
   
  @@ -30,9 +30,9 @@
   		    parser = new com.sun.xml.parser.Parser();
   		}
   		
  -	    //parser.setEntityResolver(resolver);
   	    builder = new XmlDocumentBuilder();
       	builder.setParser(parser);
  +	    parser.setErrorHandler(this);
       	parser.parse(input);
   	    return builder.getDocument();
       }
  @@ -45,6 +45,6 @@
       }
   
       public String getStatus() {
  -        return "Sun ProjectX TR2 XML Parser";
  +        return "Sun ProjectX TR2 XML Parser (validation = " + validation + ")";
       }
   }
  
  
  
  1.6       +19 -19    xml-cocoon/src/org/apache/cocoon/parser/XercesParser.java
  
  Index: XercesParser.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/parser/XercesParser.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- XercesParser.java	2000/01/23 23:15:55	1.5
  +++ XercesParser.java	2000/01/31 21:53:16	1.6
  @@ -1,36 +1,36 @@
  -/*-- $Id: XercesParser.java,v 1.5 2000/01/23 23:15:55 stefano Exp $ -- 
  +/*-- $Id: XercesParser.java,v 1.6 2000/01/31 21:53:16 stefano Exp $ --
   
    ============================================================================
                      The Apache Software License, Version 1.1
    ============================================================================
  - 
  +
       Copyright (C) 1999 The Apache Software Foundation. All rights reserved.
  - 
  +
    Redistribution and use in source and binary forms, with or without modifica-
    tion, are permitted provided that the following conditions are met:
  - 
  +
    1. Redistributions of  source code must  retain the above copyright  notice,
       this list of conditions and the following disclaimer.
  - 
  +
    2. Redistributions in binary form must reproduce the above copyright notice,
       this list of conditions and the following disclaimer in the documentation
       and/or other materials provided with the distribution.
  - 
  +
    3. The end-user documentation included with the redistribution, if any, must
       include  the following  acknowledgment:  "This product includes  software
       developed  by the  Apache Software Foundation  (http://www.apache.org/)."
       Alternately, this  acknowledgment may  appear in the software itself,  if
       and wherever such third-party acknowledgments normally appear.
  - 
  +
    4. The names "Cocoon" and  "Apache Software Foundation"  must not be used to
       endorse  or promote  products derived  from this  software without  prior
       written permission. For written permission, please contact
       apache@apache.org.
  - 
  +
    5. Products  derived from this software may not  be called "Apache", nor may
       "Apache" appear  in their name,  without prior written permission  of the
       Apache Software Foundation.
  - 
  +
    THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
    INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
    FITNESS  FOR A PARTICULAR  PURPOSE ARE  DISCLAIMED.  IN NO  EVENT SHALL  THE
  @@ -41,12 +41,12 @@
    ANY  THEORY OF LIABILITY,  WHETHER  IN CONTRACT,  STRICT LIABILITY,  OR TORT
    (INCLUDING  NEGLIGENCE OR  OTHERWISE) ARISING IN  ANY WAY OUT OF THE  USE OF
    THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  - 
  +
    This software  consists of voluntary contributions made  by many individuals
    on  behalf of the Apache Software  Foundation and was  originally created by
  - Stefano Mazzocchi  <stefano@apache.org>. For more  information on the Apache 
  + Stefano Mazzocchi  <stefano@apache.org>. For more  information on the Apache
    Software Foundation, please see <http://www.apache.org/>.
  - 
  +
    */
   
   package org.apache.cocoon.parser;
  @@ -63,7 +63,7 @@
    * This class implements an XML parser using the Apache Xerces XML parser.
    *
    * @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
  - * @version $Revision: 1.5 $ $Date: 2000/01/23 23:15:55 $
  + * @version $Revision: 1.6 $ $Date: 2000/01/31 21:53:16 $
    */
   
   public class XercesParser extends AbstractParser implements Status {
  @@ -71,18 +71,18 @@
       /**
        * Creates a DOM tree parsing the given input source.
        */
  -    public Document parse(InputSource input) throws SAXException, IOException {
  +    public Document parse(InputSource input, boolean validate) throws SAXException, IOException
{
           DOMParser parser = new DOMParser();
  -        // parser.setEntityResolver(resolver);
  +        parser.setErrorHandler(this);
           parser.setFeature("http://xml.org/sax/features/validation", validate);
  -        parser.setFeature("http://apache.org/xml/features/dom/create-entity-ref-nodes",
false);
           parser.setFeature("http://apache.org/xml/features/validation/warn-on-duplicate-attdef",
validate);
           parser.setFeature("http://apache.org/xml/features/validation/warn-on-undeclared-elemdef",
validate);
  +        parser.setFeature("http://apache.org/xml/features/dom/create-entity-ref-nodes",
false);
           parser.setFeature("http://apache.org/xml/features/dom/defer-node-expansion", true);
           parser.parse(input);
           return parser.getDocument();
  -    }        
  -    
  +    }
  +
       /**
        * Creates an empty DOM tree.
        */
  @@ -91,6 +91,6 @@
       }
   
       public String getStatus() {
  -        return Version.fVersion + " XML Parser";
  +        return Version.fVersion + " XML Parser (validation = " + validation + ")";
       }
   }
  
  
  
  1.5       +4 -3      xml-cocoon/src/org/apache/cocoon/processor/xslt/XSLTProcessor.java
  
  Index: XSLTProcessor.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/processor/xslt/XSLTProcessor.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- XSLTProcessor.java	2000/01/10 21:50:51	1.4
  +++ XSLTProcessor.java	2000/01/31 21:53:17	1.5
  @@ -1,4 +1,4 @@
  -/*-- $Id: XSLTProcessor.java,v 1.4 2000/01/10 21:50:51 stefano Exp $ -- 
  +/*-- $Id: XSLTProcessor.java,v 1.5 2000/01/31 21:53:17 stefano Exp $ -- 
   
    ============================================================================
                      The Apache Software License, Version 1.1
  @@ -70,7 +70,7 @@
    * This class implements an XSLT processor.
    *
    * @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
  - * @version $Revision: 1.4 $ $Date: 2000/01/10 21:50:51 $
  + * @version $Revision: 1.5 $ $Date: 2000/01/31 21:53:17 $
    */
   
   public class XSLTProcessor implements Actor, Processor, Status, Defaults {
  @@ -193,7 +193,8 @@
               throw new Error("Fatal error: Could not elaborate given resource: " + resource);
           }
           
  -        return this.parser.parse(input);
  +        // do not validate stylesheets
  +        return this.parser.parse(input, false);
       }
       
       public boolean hasChanged(Object context) {
  
  
  
  1.8       +6 -6      xml-cocoon/src/org/apache/cocoon/processor/xsp/XSPProcessor.java
  
  Index: XSPProcessor.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/processor/xsp/XSPProcessor.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- XSPProcessor.java	2000/01/23 23:00:00	1.7
  +++ XSPProcessor.java	2000/01/31 21:53:18	1.8
  @@ -1,4 +1,4 @@
  -/*-- $Id: XSPProcessor.java,v 1.7 2000/01/23 23:00:00 ricardo Exp $ --
  +/*-- $Id: XSPProcessor.java,v 1.8 2000/01/31 21:53:18 stefano Exp $ --
   
    ============================================================================
                      The Apache Software License, Version 1.1
  @@ -72,7 +72,7 @@
    * This class implements the XSP engine.
    *
    * @author <a href="mailto:ricardo@apache.org">Ricardo Rocha</a>
  - * @version $Revision: 1.7 $ $Date: 2000/01/23 23:00:00 $
  + * @version $Revision: 1.8 $ $Date: 2000/01/31 21:53:18 $
    */
   public class XSPProcessor extends AbstractActor
     implements Processor, Configurable, Status
  @@ -121,7 +121,7 @@
             new InputStreamReader(
               this.getClass().getResourceAsStream("xsp.xml")
             )
  -        )
  +        ), false
         );
   
         Element root = document.getDocumentElement();
  @@ -168,7 +168,7 @@
               new InputStreamReader(
                 this.getClass().getResourceAsStream(templateName)
               )
  -          )
  +          ), false
           );
           template.setStylesheet(templateStylesheet);
   
  @@ -184,7 +184,7 @@
   /* END: Create a new XSP core library given URI  */
         }
       } catch (Exception e) {
  -      throw new RuntimeException("Error during initialization: " + e.getMessage());
  +      throw new RuntimeException("Error during initialization: " + e);
       }
     }
   
  @@ -262,7 +262,7 @@
           URL url = new URL(location);
   
           Document stylesheet = this.parser.parse(
  -          new InputSource((new URL(location)).openStream())
  +          new InputSource((new URL(location)).openStream()), false
           );
   
           template.setStylesheet(stylesheet);
  
  
  
  1.8       +2 -2      xml-cocoon/src/org/apache/cocoon/processor/xsp/xsp-java.xsl
  
  Index: xsp-java.xsl
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/processor/xsp/xsp-java.xsl,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- xsp-java.xsl	2000/01/08 10:03:56	1.7
  +++ xsp-java.xsl	2000/01/31 21:53:18	1.8
  @@ -53,8 +53,8 @@
   <!-- written by Ricardo Rocha "ricardo@apache.org" -->
   
   
  -<xsl:stylesheet
  -  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  +<xsl:stylesheet 
  +  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
     xmlns:xsp="http://www.apache.org/1999/XSP/Core"
   >
   
  
  
  
  1.6       +3 -3      xml-cocoon/src/org/apache/cocoon/transformer/XalanTransformer.java
  
  Index: XalanTransformer.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/transformer/XalanTransformer.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- XalanTransformer.java	2000/01/23 23:15:29	1.5
  +++ XalanTransformer.java	2000/01/31 21:53:19	1.6
  @@ -1,4 +1,4 @@
  -/*-- $Id: XalanTransformer.java,v 1.5 2000/01/23 23:15:29 stefano Exp $ -- 
  +/*-- $Id: XalanTransformer.java,v 1.6 2000/01/31 21:53:19 stefano Exp $ -- 
   
    ============================================================================
                      The Apache Software License, Version 1.1
  @@ -69,7 +69,7 @@
    * Xalan XSLT processor.
    *
    * @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
  - * @version $Revision: 1.5 $ $Date: 2000/01/23 23:15:29 $
  + * @version $Revision: 1.6 $ $Date: 2000/01/31 21:53:19 $
    */
   
   public class XalanTransformer extends AbstractActor implements Transformer, Status {
  @@ -112,7 +112,7 @@
           }
   
           public void parse(InputSource in) throws IOException, SAXException {
  -            this.document = this.parser.parse(in);
  +            this.document = this.parser.parse(in, false);
               
               // The Xalan stylesheet is normally built from SAX events,
               // so if a DocumentHandler is specified, we need to produce
  
  
  

Mime
View raw message