Skip to main content



      Home
Home » Archived » XML Schema Definition (XSD) » "fixed" and "default" and "groups"
"fixed" and "default" and "groups" [message #582184] Tue, 06 January 2004 09:54
Eclipse UserFriend
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>
Previous Topic:href help
Next Topic:problem with headless xml schema -> genmodel
Goto Forum:
  


Current Time: Tue Jul 08 19:59:42 EDT 2025

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

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

Back to the top