[Bug 3072] Which types have constructor functions?

http://www.w3.org/Bugs/Public/show_bug.cgi?id=3072





------- Comment #2 from mike@saxonica.com  2006-04-04 08:50 -------
F+O 5.1 says that built-in atomic types have constructor functions.
F+O 5.3 says that user-defined atomic types have constructor functions.

You seem to have read 5.1 as saying that *only* built-in atomic types have
constructor functions, which it doesn't say...

I don't think the specs are inconsistent about xdt:anyAtomicType either. F+O's
phrase is 

    Every built-in atomic type that is defined in [XML Schema Part 2:
    Datatypes Second Edition], except xs:NOTATION, has an associated
    constructor function; as do xdt:untypedAtomic, defined in Section
    2.6 TypesDM and the two derived types xdt:yearMonthDuration and
    xdt:dayTimeDuration defined in 10.3 Two Totally Ordered Subtypes
    of Duration. 

The set of types described here does not include xdt:anyAtomicType. But it
would do no harm to spell this out more explicitly.

Michael Kay

Received on Tuesday, 4 April 2006 08:50:54 UTC