<model>- declaration

Good morning everybody!

Could someone please give me an concrete example of a <model>-
declaration? I've seen so many different possibilities so far that I've
no clue any more how to declare it.
I just want to define an element called "Tag" which should be based on
the datatype "day" and so on. 
Would it be possible to write:		

			<xform:model>
				<xsd:simpleType name="day">
					<xsd:restriction
base="xsd:gDay">
					</xsd:restriction>
				</xsd:simpleType>
				<xsd:simpleType name="month">
					<xsd:restriction
base="xsd:gMonth">
					</xsd:restriction>
				</xsd:simpleType>
				<xsd:simpleType name="year">
					<xsd:restriction
base="xsd:gYear">
					</xsd:restriction>
				</xsd:simpleType>
	</xform:model>


		<xform:instance>
				<notiz>
					<username />
					<persoenlicheNotiz />
					<datum>
						<tag type="day"/>
						<monat type="month"/>
						<jahr type="year"/>
					</datum>
					<titel />
					<text />
				</notiz>
		</xform:instance>

Or would it be better to declare it like this:

	<model>
	    <day name="tag" required="true"....>
	    <month name="monat" required="true" ....>
	</model>

Yours,
Roman

> Roman Huditsch (RH ) 
> _____________________________________________________________________
> hico Informations- und Kommunikations-Management Gesellschaft m.b.H.
> TechLab, Thomas A. Edison Straße 2.
> A-7000 Eisenstadt / Austria
> phone: +43/2682/704-61-00; fax: +43/2682/704-71-61-10
> e-mail:support@hico.com;  r.huditsch@hico.com
> 
> 

Received on Monday, 23 July 2001 04:09:25 UTC