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/02/18 21:57:25 UTC

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

sandygao    02/02/18 12:57:25

  Modified:    java/src/org/apache/xerces/impl/xs/traversers
                        XSDGroupTraverser.java
  Log:
  Fixing bug [6528]: in the case where a global group has empty content, we didn't create the XSGroupDecl. But the correct behavior should be that we
  create an XSGroupDecl with empty particle.
  
  Revision  Changes    Path
  1.7       +2 -2      xml-xerces/java/src/org/apache/xerces/impl/xs/traversers/XSDGroupTraverser.java
  
  Index: XSDGroupTraverser.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/impl/xs/traversers/XSDGroupTraverser.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- XSDGroupTraverser.java	15 Feb 2002 22:08:48 -0000	1.6
  +++ XSDGroupTraverser.java	18 Feb 2002 20:57:25 -0000	1.7
  @@ -77,7 +77,7 @@
    * @author Rahul Srivastava, Sun Microsystems Inc.
    * @author Elena Litani, IBM
    * @author Lisa Martin,  IBM
  - * @version $Id: XSDGroupTraverser.java,v 1.6 2002/02/15 22:08:48 sandygao Exp $
  + * @version $Id: XSDGroupTraverser.java,v 1.7 2002/02/18 20:57:25 sandygao Exp $
    */
   class  XSDGroupTraverser extends XSDAbstractParticleTraverser {
   
  @@ -192,7 +192,7 @@
               }
   
               // add global group declaration to the grammar
  -            if (particle != null && strNameAttr != null) {
  +            if (strNameAttr != null) {
                   group = new XSGroupDecl();
                   group.fName = strNameAttr;
                   group.fTargetNamespace = schemaDoc.fTargetNamespace;
  
  
  

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