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: Mon, 10 Feb 2003 13:45:15 -0700
Message-Id: <>
To: W3C XML Schema Comments list <www-xml-schema-comments@w3.org>


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

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 ;-)


         Andreas Hochsteger 
Received on Monday, 10 February 2003 16:20:20 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:08:59 UTC