sboag       00/07/23 10:04:48

  Modified:    src/org/apache/xalan/xpath/xml XMLParserLiaisonDefault.java
  Log:
  Declare isDefaultUseValidation set to true by default, and set to false if 
validation is specifically set.
  
  Revision  Changes    Path
  1.36      +19 -2     
xml-xalan/src/org/apache/xalan/xpath/xml/XMLParserLiaisonDefault.java
  
  Index: XMLParserLiaisonDefault.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/src/org/apache/xalan/xpath/xml/XMLParserLiaisonDefault.java,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- XMLParserLiaisonDefault.java      2000/07/19 14:23:01     1.35
  +++ XMLParserLiaisonDefault.java      2000/07/23 17:04:48     1.36
  @@ -639,7 +639,12 @@
     }
    
     /**
  -   * If set to true, validation will be performed.  Validation is off by 
default.
  +   * If set to true, validation will be performed, 
  +   * if set to false, validation will not be performed.  
  +   * Validation is  
  +   * <a href 
"http://xml.apache.org/xerces-j/features.html#dynamic";>dynamic</a>
  +   * by default.  Note that if validation is off, the id() function 
  +   * will not be able to locate nodes.
      */
     public boolean getUseValidation()
     {
  @@ -647,10 +652,22 @@
     }
     
     /**
  -   * If set to true, validation will be performed.  Validation is off by 
default.
  +   * True if validation was specifically set by the caller,
  +   * false if not.
      */
  +  protected boolean m_isDefaultUseValidation = true;
  +  
  +  /**
  +   * If set to true, validation will be performed, 
  +   * if set to false, validation will not be performed.  
  +   * Validation is  
  +   * <a href 
"http://xml.apache.org/xerces-j/features.html#dynamic";>dynamic</a>
  +   * by default.  Note that if validation is off, the id() function 
  +   * will not be able to locate nodes.
  +   */
     public void setUseValidation(boolean b)
     {
  +    m_isDefaultUseValidation = false;
       m_use_validation = b;
     }
     
  
  
  

Reply via email to