morten      01/10/31 01:19:10

  Modified:    java/src/org/apache/xalan/xsltc/compiler Stylesheet.java
  Log:
  Removed a regression from yesterday ('version' attribute missing).
  PR:           n/a
  Obtained from:        n/a
  Submitted by: [EMAIL PROTECTED]
  Reviewed by:  [EMAIL PROTECTED]
  
  Revision  Changes    Path
  1.30      +10 -10    
xml-xalan/java/src/org/apache/xalan/xsltc/compiler/Stylesheet.java
  
  Index: Stylesheet.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/Stylesheet.java,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- Stylesheet.java   2001/10/31 08:31:56     1.29
  +++ Stylesheet.java   2001/10/31 09:19:10     1.30
  @@ -1,5 +1,5 @@
   /*
  - * @(#)$Id: Stylesheet.java,v 1.29 2001/10/31 08:31:56 morten Exp $
  + * @(#)$Id: Stylesheet.java,v 1.30 2001/10/31 09:19:10 morten Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -310,16 +310,16 @@
       public void parseContents(Parser parser) {
        final SymbolTable stable = parser.getSymbolTable();
   
  -     if (!_simplified) {
  -         // Make sure the XSL version set in this stylesheet
  -         if ((_version == null) || (_version.equals(EMPTYSTRING))) {
  -             reportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR,"version");
  -         }
  -         // Verify that the version is 1.0 and nothing else
  -         else if (!_version.equals("1.0")) {
  -             reportError(this, parser, ErrorMsg.XSL_VERSION_ERR, _version);
  -         }
  +     /*
  +     // Make sure the XSL version set in this stylesheet
  +     if ((_version == null) || (_version.equals(EMPTYSTRING))) {
  +         reportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR,"version");
  +     }
  +     // Verify that the version is 1.0 and nothing else
  +     else if (!_version.equals("1.0")) {
  +         reportError(this, parser, ErrorMsg.XSL_VERSION_ERR, _version);
        }
  +     */
   
        // Add the implicit mapping of 'xml' to the XML namespace URI
        addPrefixMapping("xml", "http://www.w3.org/XML/1998/namespace";);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to