<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>17477</bug_id>
          
          <creation_ts>2012-06-13 08:00:52 +0000</creation_ts>
          <short_desc>[DM 3.0] Definitions of xs:untyped, etc</short_desc>
          <delta_ts>2012-07-17 14:39:08 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>Data Model 3.0</component>
          <version>Last Call drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Kay">mike</reporter>
          <assigned_to name="Norman Walsh">ndw</assigned_to>
          
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>69014</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2012-06-13 08:00:52 +0000</bug_when>
    <thetext>In section 2.7.2 of XDM we give a brief definition of the types xs:untyped, xs:untypedAtomic, and xs:anyAtomicType.

At the end of the section we say &quot;A schema for these types is provided in C Schema for the Extended XS Namespace.&quot;; however, this only applies to the last two types listed (xs:dayTimeDuration and xs:yearMonthDuration).

We should say that when the implementation supports XSD 1.1, the XSD 1.1 definitions of the types xs:anyAtomicType, xs:dayTimeDuration, and xs:yearMonthDuration supersede those in the XDM specification.

We should also say a little more about the types xs:untyped and xs:untypedAtomic. For example, the specification of deep-equal() depends on knowing whether these types are simple or complex, and if complex, what their variety is. (I imagine xs:untyped is a complex type with mixed content, but I don&apos;t see anything that says this explicitly). Ideally we should give a property tableau for these types in the same style as XSD (see for example http://www.w3.org/TR/xmlschema11-1/#builtin-ctd). Or perhaps we could say that the properties of xs:untyped are the same as those of xs:anyType, except for the base type and the name.

Finally, we say &quot;No predefined types are derived from xs:untyped.&quot;, and the same for xs:untypedAtomic. I think we should also say that no user-defined types can be derived from these types. (It&apos;s fairly obvious that we provide no mechanism to derive user-defined types from these built-in types, but some implementors provide programmatic ways to construct new types and for completeness we should ban this, as the semantics are not well defined.)

XSD 1.1 prohibits derivation from xs:anyAtomicType by restriction, union, or list, and we should do likewise for implementations using XSD 1.0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70041</commentid>
    <comment_count>1</comment_count>
    <who name="Norman Walsh">ndw</who>
    <bug_when>2012-07-17 14:21:21 +0000</bug_when>
    <thetext>I&apos;ve attempted to address these issues, see

https://www.w3.org/XML/Group/qtspecs/specifications/xpath-datamodel-30/html/Overview-diff.html#types-predefined

* I clarified that the schema only applies to the duration types.

* I added a statement to the effect that XSD 1.1 definitions take precedence.

* I don&apos;t feel competent to provide the tableau for xs:untyped, so I opted for the suggestion that we say it&apos;s the same as xs:anyType except for the name and base type.

* I added text to indicate that no derivation from xs:untyped or xs:untypedAtomic is allowed.

* I added the statement that xs:anyAtomictype cannot be extended by restriction, union, or list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70042</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2012-07-17 14:39:08 +0000</bug_when>
    <thetext>Looks good to me.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>