[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Occurrence Question
Hi All, I would like to know if these two snippets have the same 'meaning' (for xml schema): <xs:choice> <xs:element minOccurs="0" maxOccurs="unbounded" ref="col"/> <xs:element minOccurs="0" maxOccurs="unbounded" ref="colgroup"/> </xs:choice> AND <xs:choice minOccurs='0'> <xs:element maxOccurs="unbounded" ref="col"/> <xs:element maxOccurs="unbounded" ref="colgroup"/> </xs:choice> Options I thought: 1) they express the same schema components (don't think so, since min and max are attributes of particle component) 2) they express different components but these components validate the same instances. 3) they are different and validate different instances (presumably because the first one wants at least one selected particle for the choice). 4) In some contexts they have surely the same meaning, in others they might not (?). 5) None of the above Thanks Michele Vivoda ___________________________________ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|