Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » How to set maxOccurs and minOccurs in a named model group
How to set maxOccurs and minOccurs in a named model group [message #58079] Thu, 24 February 2005 05:06 Go to next message
Eclipse UserFriend
Originally posted by: mashraf.ca.ibm.com

Ed,

I am trying to generate the following named model group:

<xsd:group name="AGroup">
<xsd:sequence maxOccurs="2" minOccurs="0">
<xsd:elelemnt name="aname" type="xsd:string"/>
<!-- ... stuff ommited .. -->
</xsd:sequence>
</xsd:group>

What interface do I need to use to get the occurences as attributes of
sequence in the named model group? I know how to do that for a complex type
definition - but can't find an equivalent interface for the named model
group.

Thanks for your help.

Mahboob Ashraf
Re: How to set maxOccurs and minOccurs in a named model group [message #58206 is a reply to message #58079] Thu, 24 February 2005 11:12 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Mahbood,

You won't find such an API because it isn't valid to specify the
multiplicity on the model group in a model group definition (just as it
isn't valid to specify the multiplicity on a global element
declaration). It can only be specified at the point the model group
definition is reference (just with an element declaration reference to a
global element declaration). It's good to validate your schemes first...


Mahboob Ashraf wrote:

>Ed,
>
>I am trying to generate the following named model group:
>
><xsd:group name="AGroup">
> <xsd:sequence maxOccurs="2" minOccurs="0">
> <xsd:elelemnt name="aname" type="xsd:string"/>
> <!-- ... stuff ommited .. -->
> </xsd:sequence>
></xsd:group>
>
>What interface do I need to use to get the occurences as attributes of
>sequence in the named model group? I know how to do that for a complex type
>definition - but can't find an equivalent interface for the named model
>group.
>
>Thanks for your help.
>
>Mahboob Ashraf
>
>
>
>
Re: How to set maxOccurs and minOccurs in a named model group [message #594263 is a reply to message #58079] Thu, 24 February 2005 11:12 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33185
Registered: July 2009
Senior Member
Mahbood,

You won't find such an API because it isn't valid to specify the
multiplicity on the model group in a model group definition (just as it
isn't valid to specify the multiplicity on a global element
declaration). It can only be specified at the point the model group
definition is reference (just with an element declaration reference to a
global element declaration). It's good to validate your schemes first...


Mahboob Ashraf wrote:

>Ed,
>
>I am trying to generate the following named model group:
>
><xsd:group name="AGroup">
> <xsd:sequence maxOccurs="2" minOccurs="0">
> <xsd:elelemnt name="aname" type="xsd:string"/>
> <!-- ... stuff ommited .. -->
> </xsd:sequence>
></xsd:group>
>
>What interface do I need to use to get the occurences as attributes of
>sequence in the named model group? I know how to do that for a complex type
>definition - but can't find an equivalent interface for the named model
>group.
>
>Thanks for your help.
>
>Mahboob Ashraf
>
>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Test Program
Next Topic:Test Program
Goto Forum:
  


Current Time: Fri Jul 19 12:22:25 GMT 2024

Powered by FUDForum. Page generated in 0.03981 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top