Kiran, That is true until validation is off. When you validate, then content model is expanded and (oneormore zeroorone...) nodes may appear in schema content model.
First I did my own content processing thinking as you, that no (*+)? nodes are created for XML Schema. But validate=on broke my code. As a quick solution to keep my code unbrokable, I impemented additional functionality by keeping the original content model (I called it "Collapsed"). That is model w/o +*?. When makeContentModel() method is issued, it causes the content model to be expanded. So before this is done, I'm doing a depp copy of the existing content model. If you are interested in this code let me know. Regards, Peter A. Volchek > Maybe I was misled. > Let me understand this right. > Is it the case that the Schema parser never creates content nodes for > oneormore zeroorone etc... whereas the DTD Parser does. > I have some common code which attempts to traverse through the content spec > nodes and tries to look for these type of content nodes. > Please correct me if I am wrong. > > Thanks > Kiran > > -----Original Message----- > From: Khaled Noaman [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 19, 2002 10:13 AM > To: [EMAIL PROTECTED] > Subject: Re: Bug in schema parser! > > > Do you have an example? > The min/maxOccurs is not silently ignored . It's handled where the group is > actually ref'd (i.e. within a choice/sequence/etc.). > > Khaled > > "Bagepalli, Kiran" wrote: > > > I looked up on the 2001 spec and it says that minOccurs and > > maxOccurs is valid on a group ref. > > > > Can someone on this list even say what part of the schema > > standard is supported. > > > > Thanks > > Kiran > > > > -----Original Message----- > > From: Bagepalli, Kiran > > To: '[EMAIL PROTECTED]' > > Sent: 12/18/02 7:02 PM > > Subject: Bug in schema parser > > > > The schema validator does not seem to handle > > <group ref={name} minOccurs="0" maxOccurs="unbounded"> > > > > I looked up the code in TraverseSchema and the code silently ignores the > > minmax values!!! > > It should have constructed a content spec node with zero or more. > > > > Has this bug been overlooked. > > > > Thanks > > Kiran > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]