W3C home > Mailing lists > Public > public-html-data-tf@w3.org > December 2011

Re: <time> values in HTML5

From: John Cowan <cowan@mercury.ccil.org>
Date: Mon, 5 Dec 2011 18:48:26 -0500
To: Noah Mendelsohn <nrm@arcanedomain.com>
Cc: "C. M. Sperberg-McQueen" <cmsmcq@blackmesatech.com>, Henri Sivonen <hsivonen@iki.fi>, www-xml-schema-comments@w3.org, HTML Data Task Force WG <public-html-data-tf@w3.org>, RDFa WG <public-rdfa-wg@w3.org>, public-html-xml@w3.org
Message-ID: <20111205234826.GG7395@mercury.ccil.org>
Noah Mendelsohn scripsit:

> To further clarify what Michael says above: the XSD specification is in 
> two parts, structures and datatypes, as you all likely know. One of the 
> reasons is that the datatypes are intended to be usable not just with 
> Schema Structures, but in other languages as well. 

In particular, most RELAX NG implementations support the built-in datatypes
and constraining facets of XML Schema, though the RELAX NG standard does not
require it.

> The datatypes specification >does< define the whitespace facet, and
> sets out the definitions of the facet values "preserve", "replace",
> and "collapse". It then, effectively, defers to the specification for
> the language that uses the types to determine whether the facet is
> accepted and enforced. Schema structures does, of course, act on the
> whitespace facet.

RELAX NG does not support specifying the whiteSpace facet directly;
however, one can get the results of the preserve, replace, and collapse
facet values by specifying the types string, normalizedString, or token
(or a subtype of token) respectively.

-- 
John Cowan <cowan@ccil.org>             http://www.ccil.org/~cowan
The peculiar excellence of comedy is its excellent fooling, and Aristophanes's
claim to immortality is based upon one title only: he was a master maker
of comedy, he could fool excellently.  Here Gilbert stands side by side
with him.  He, too, could write the most admirable nonsense.  There has
never been better fooling than his, and a comparison with him carries
nothing derogatory to the great Athenian. --Edith Hamilton, The Greek Way
Received on Monday, 5 December 2011 23:48:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 5 December 2011 23:48:59 GMT