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 2001/11/30 20:13:27 UTC

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

sandygao    01/11/30 11:13:26

  Modified:    java/src/org/apache/xerces/impl/xs/traversers
                        XSDAbstractParticleTraverser.java
  Log:
  We shouldn't insert an "all" particle into a sequence or a choice, otherwise
  we won't be able to create dfa from the result particle.
  
  Revision  Changes    Path
  1.2       +4 -1      xml-xerces/java/src/org/apache/xerces/impl/xs/traversers/XSDAbstractParticleTraverser.java
  
  Index: XSDAbstractParticleTraverser.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/impl/xs/traversers/XSDAbstractParticleTraverser.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- XSDAbstractParticleTraverser.java	2001/10/25 20:36:04	1.1
  +++ XSDAbstractParticleTraverser.java	2001/11/30 19:13:26	1.2
  @@ -68,7 +68,7 @@
   /**
    * @author Elena Litani, IBM
    * @author Sandy Gao, IBM
  - * @version $Id: XSDAbstractParticleTraverser.java,v 1.1 2001/10/25 20:36:04 elena Exp $
  + * @version $Id: XSDAbstractParticleTraverser.java,v 1.2 2001/11/30 19:13:26 sandygao Exp $
    */
   abstract class XSDAbstractParticleTraverser extends XSDAbstractTraverser {
   
  @@ -262,6 +262,9 @@
                   // A content type of all can only appear
                   // as the content type of a complex type definition.
                   if (hasAllContent(particle)) {
  +                    // don't insert the "all" particle, otherwise we won't be
  +                    // able to create DFA from this content model
  +                    particle = null;
                       Object [] args;
                       if (choice) {
                           args = new Object[]{SchemaSymbols.ELT_CHOICE};
  
  
  

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