knoaman     2003/11/23 08:49:26

  Modified:    c/src/xercesc/internal XSObjectFactory.cpp
  Log:
  PSVI: create local elements of groups
  
  Revision  Changes    Path
  1.4       +15 -0     xml-xerces/c/src/xercesc/internal/XSObjectFactory.cpp
  
  Index: XSObjectFactory.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/internal/XSObjectFactory.cpp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- XSObjectFactory.cpp       23 Nov 2003 16:21:40 -0000      1.3
  +++ XSObjectFactory.cpp       23 Nov 2003 16:49:26 -0000      1.4
  @@ -56,6 +56,9 @@
   
   /*
    * $Log$
  + * Revision 1.4  2003/11/23 16:49:26  knoaman
  + * PSVI: create local elements of groups
  + *
    * Revision 1.3  2003/11/23 16:21:40  knoaman
    * PSVI: create local elements of complex types
    *
  @@ -614,6 +617,17 @@
           , xsModel
           , fMemoryManager
       );
  +    fDeleteVector->addElement(xsObj);
  +
  +    // process local elements
  +    unsigned int elemCount = groupInfo->elementCount();
  +    for (unsigned int j=0; j<elemCount; j++)
  +    {
  +        SchemaElementDecl* elemDecl = groupInfo->elementAt(j);
  +
  +        if (elemDecl->getEnclosingScope() == groupInfo->getScope())
  +            addOrFind(elemDecl, xsModel);
  +    }
   
       return xsObj;
   }
  @@ -653,6 +667,7 @@
           , xsModel
           , fMemoryManager
       );
  +    fDeleteVector->addElement(xsObj);
   
       return xsObj;
   }
  
  
  

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

Reply via email to