W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > January to March 2003

New Requirement for Constructing Simple Datatypes

From: by way of <e9625392@student.tuwien.ac.at>
Date: Wed, 29 Jan 2003 13:04:10 -0700
Message-Id: <5.1.0.14.1.20030129130407.02eb8580@localhost>
To: W3C XML Schema Comments list <www-xml-schema-comments@w3.org>




Hi!

Is it possible to construct simple datatypes by composing other simple data
types?

Here's a practical example for better understanding:
If you define a schema you often have elements or attributes with data like
email address, host name, URL, ...
All of these data types have to be defined completely from scratch every time
(at least I didn't find a better solution) in the Schema.
But it would be much cleaner, if I could define the basic data types
'hostname', 'path', 'username', ...

Then I specify and email address by composing it of an username'@'hostname.
The same for an URL which is protocol'://'hostname':'port and path.

If this is not possible with XML Schema Version 1.0 then I'd propose to take
the requirement up for Version 1.1.

Comments are welcome ;-)

Bye,

	Andreas Hochsteger 
Received on Wednesday, 29 January 2003 15:05:30 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:01 GMT