Re: <time> values in HTML5

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 UTC