Index: org/apache/ws/jaxme/xs/impl/XSTypeImpl.java =================================================================== RCS file: /home/cvspublic/ws-jaxme/src/xs/org/apache/ws/jaxme/xs/impl/XSTypeImpl.java,v retrieving revision 1.13 diff -u -r1.13 XSTypeImpl.java --- org/apache/ws/jaxme/xs/impl/XSTypeImpl.java 16 Feb 2004 23:39:43 -0000 1.13 +++ org/apache/ws/jaxme/xs/impl/XSTypeImpl.java 19 Aug 2004 17:50:19 -0000 @@ -389,6 +389,8 @@ XSGroup group = pOwner.getXSSchema().getXSObjectFactory().newXSGroup(pOwner, sequence); group.validate(); XSParticleImpl particle = new XSParticleImpl(group); + particle.setMaxOccurs(pSequence.getMaxOccurs()); + particle.setMinOccurs(pSequence.getMinOccurs()); if (group.getParticles().length == 0) { setParticle(XsComplexContentType.EMPTY, particle); } else { @@ -408,6 +410,8 @@ XSGroup group = pOwner.getXSSchema().getXSObjectFactory().newXSGroup(pOwner, choice); group.validate(); XSParticleImpl particle = new XSParticleImpl(group); + particle.setMaxOccurs(pChoice.getMaxOccurs()); + particle.setMinOccurs(pChoice.getMinOccurs()); if (group.getParticles().length == 0) { throw new LocSAXException("The complex type must not have an empty element group, as it is a choice.", choice.getLocator()); @@ -428,6 +432,8 @@ XSGroup group = pOwner.getXSSchema().getXSObjectFactory().newXSGroup(pOwner, all); group.validate(); XSParticleImpl particle = new XSParticleImpl(group); + particle.setMaxOccurs(pAll.getMaxOccurs()); + particle.setMinOccurs(pAll.getMinOccurs()); if (group.getParticles().length == 0) { setParticle(XsComplexContentType.EMPTY, particle); } else {