You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by sa...@apache.org on 2002/01/24 21:08:24 UTC

cvs commit: xml-xerces/java/src/org/apache/xerces/impl/xs XSAttributeGroupDecl.java

sandygao    02/01/24 12:08:24

  Modified:    java/src/org/apache/xerces/impl/xs XSAttributeGroupDecl.java
  Log:
  Should do derivation checking on attribute uses in the derived type, if their
  {use} is prohibited.
  
  Revision  Changes    Path
  1.4       +7 -1      xml-xerces/java/src/org/apache/xerces/impl/xs/XSAttributeGroupDecl.java
  
  Index: XSAttributeGroupDecl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/impl/xs/XSAttributeGroupDecl.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- XSAttributeGroupDecl.java	30 Nov 2001 19:29:22 -0000	1.3
  +++ XSAttributeGroupDecl.java	24 Jan 2002 20:08:24 -0000	1.4
  @@ -66,7 +66,7 @@
    * @author Sandy Gao, IBM
    * @author Rahul Srivastava, Sun Microsystems Inc.
    *
  - * @version $Id: XSAttributeGroupDecl.java,v 1.3 2001/11/30 19:29:22 sandygao Exp $
  + * @version $Id: XSAttributeGroupDecl.java,v 1.4 2002/01/24 20:08:24 sandygao Exp $
    */
   public class XSAttributeGroupDecl {
   
  @@ -187,6 +187,12 @@
                  return errorCode;
                }
   
  +             // if this attribute is prohibited in the derived type, don't
  +             // need to check any of the following constraints.
  +             if (attrUse.fUse == SchemaSymbols.USE_PROHIBITED) {
  +                continue;
  +             }
  +             
                baseAttrDecl = baseAttrUse.fAttrDecl;
                //
                // derivation-ok-restriction.  Constraint 2.1.1
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org