W3C home > Mailing lists > Public > www-forms@w3.org > July 2001

<model>- declaration

From: Roman Huditsch <r.huditsch@hico.com>
Date: Mon, 23 Jul 2001 10:10:36 +0200
Message-ID: <8345DC4EFAD23A4A8959A2830EFBFD0607EBDB@hico-ads.hico.com>
To: <www-forms@w3.org>
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:		

				<xsd:simpleType name="day">
				<xsd:simpleType name="month">
				<xsd:simpleType name="year">

					<username />
					<persoenlicheNotiz />
						<tag type="day"/>
						<monat type="month"/>
						<jahr type="year"/>
					<titel />
					<text />

Or would it be better to declare it like this:

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


> 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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:04 UTC