Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » "fixed" and "default" and "groups"
"fixed" and "default" and "groups" [message #582184] Tue, 06 January 2004 14:54
Raster Mising name is currently offline Raster Mising nameFriend
Messages: 75
Registered: July 2009
Member
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: Sat Aug 08 00:06:56 GMT 2020

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

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

Back to the top