<?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>2548</bug_id>
          
          <creation_ts>2005-11-22 03:44:49 +0000</creation_ts>
          <short_desc>[XQuery] Change namespace binding for anyAtomicType, yearMonthDuration and dayTimeDuration</short_desc>
          <delta_ts>2007-02-25 23:48:46 +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>XQuery 1.0</component>
          <version>Candidate Recommendation</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</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="TAN Kuan Hui">kuanhui</reporter>
          <assigned_to name="Jonathan Robie">jonathan.robie</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>7256</commentid>
    <comment_count>0</comment_count>
    <who name="TAN Kuan Hui">kuanhui</who>
    <bug_when>2005-11-22 03:44:50 +0000</bug_when>
    <thetext>Kindly consider changing the namespace binding for 
anyAtomicType, yearMonthDuration and dayTimeDuration to
http://www.w3.org/2001/XMLSchema
rather than 
http://www.w3.org/2005/xpath-datatypes

Either that or propose to the XML Schema 1.1 working group to
retain the bindings to http://www.w3.org/2005/xpath-datatypes.

Kindly reference :-
XML Schema 1.1 Part 2: Datatypes Working Draft dated 24 February 2005
http://www.w3.org/TR/2005/WD-xmlschema11-2-20050224/#anyAtomicType-def
http://www.w3.org/TR/2005/WD-xmlschema11-2-20050224/#yearMonthDuration
http://www.w3.org/TR/2005/WD-xmlschema11-2-20050224/#dayTimeDuration

Otherwise, with the subsequent introduction of XML Schema 1.1, 
redundancies (and ambiguities) will be introduced into the 
3 (current) xdt types. I see no harm in binding anyAtomicType,
yearMonthDuration and dayTimeDuration to xs rather than xdt.

If this issue has been dealt with before, kindly enlighten
me on the considerations.

Thank you.
Kuan Hui</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8022</commentid>
    <comment_count>1</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2006-01-27 22:21:48 +0000</bug_when>
    <thetext>I agree - in fact, I have written on this at
http://blogs.datadirect.com/jonathan_robie/2006/01/archaeology_and.html.

Both of your suggestions are logically reasonable, but I prefer the first
suggestion, to use the XML Schema namespace. After all, these are types that are
used explicitly in schema declarations, and for all other such types, we use the
XML Schema type name, which is in the XML namespace.

At the time we wrote the Candidate Recommendation, Schema 1.1 Datatypes had not
been published as a Working Draft, so this was not possible.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8391</commentid>
    <comment_count>2</comment_count>
    <who name="Liam R E Quin">liam</who>
    <bug_when>2006-02-22 23:14:03 +0000</bug_when>
    <thetext>Thank you for your comment.  At a joint face-to-face meeting the XSL WG, XML
Query WG and Schema WG discussed this issue (which had also been raised
internally at W3C).  I have marked this issue as closed, &quot;fixed&quot; -- please feel
free to reopen it if you are not satisified with the following resolution:

Here is the resolution:

The XQuery Working Group has discussed this question with the XML
Schema Working Group, which has given us permission to move
xdt:anyAtomicType, xdt:yearMonthDuration, and xdt:dayTimeDuration in
the XML Schema namespace &quot;http://www.w3.org/2001/XMLSchema&quot;, along
with xdt:untyped, and xdt:untypedAtomic. We will rename these types to
xs:anyAtomicType, xs:yearMonthDuration, xs:dayTimeDuration xs:untyped,
and xs:untypedAtomic. At that point, all XQuery built-in types will be
defined in the XML Schema namespace.

Although this change may cause some short term difficulties, we
believe this simplifies our type system in the long run, and will
benefit users of both XQuery and XML Schema. Because XML Schema 1.1 is
still only a Working Draft, these types are defined in the XQuery and
XPath Data Model specification in XQuery 1.0 and XPath 2.0.

The XML Schema Working Group has added some of these types to the
current XML Schema 1.1 Working Draft [1]. We will coordinate with the
XML Schema Working Group as the two specifications progress.

[1] http://www.w3.org/TR/2006/WD-xmlschema11-2-20060116/#status</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14158</commentid>
    <comment_count>3</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2007-02-25 23:48:46 +0000</bug_when>
    <thetext>Closing bug because commenter has not objected to the resolution posted and more than two weeks have passed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>