"fixed" and "default" and "groups" [message #582184] |
Tue, 06 January 2004 09:54 |
Eclipse User |
|
|
|
Hi Eddie!
Based on your reply I could figure out where I was going wrong on the
facet question. Thanks.
Two new questions-
1. In a simpleElem ent and a Attribute how do I obtain the values
specified as "fixed" and "default"
2. In the following xsd I have shown maxOccurs in four places. Would all
the four maxOccurs be indicated or is any particular occurence redundant
and left out when I use the api.
Thank you.
Ras
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'>
<xs:group name="persongroup">
<xs:choice maxOccurs="5">
<xs:element name="firstname" type="xs:string" maxOccurs="4"/>
<xs:element name="lastname" type="xs:string"/>
<xs:element name="birthday" type="xs:date"/>
</xs:choice>
</xs:group>
<xs:element name="person" type="personinfo"/>
<xs:complexType name="personinfo">
<xs:sequence maxOccurs="2">
<xs:group ref="persongroup" maxOccurs="3"/>
<xs:element name="country" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
|
|
|
Powered by
FUDForum. Page generated in 0.31356 seconds