<?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>22552</bug_id>
          
          <creation_ts>2013-07-03 08:30:37 +0000</creation_ts>
          <short_desc>[XP3.0] subtype(A, B) and xs:error</short_desc>
          <delta_ts>2013-07-09 15:32:52 +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>XPath 3.0</component>
          <version>Candidate Recommendation</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="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>90216</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2013-07-03 08:30:37 +0000</bug_when>
    <thetext>Section 2.5.7 says that xs:error? and xs:error+ are &quot;identical&quot; to empty-sequence(). But the table in 2.5.6.1 gives different outcomes for subtype(xs:error?, X) and subtype(empty-sequence(), X). For example, it says that subtype(xs:error?, empty-sequence()) is false, while subtype(empty-sequence(), empty-sequence()) is true.

I think the answer to this problem is to define another row and column in the table labelled xs:error, and to state in an annotation to the table that xs:error+ is treated like xs:error, while xs:error? and xs:error* are treated like empty-sequence(). The entries in the new row and column are

subtype(xs:error, X) all rows true
subtype(X, xs:error) all rows false except subtype(xs:error, xs:error).

The existing exception in one cell of the table can then be removed.

Incidentally, we have now established that XSD 1.1 does not define a valid XML representation for union types with no members, so in practice we can treat xs:error as being the only such type.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90482</commentid>
    <comment_count>1</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2013-07-09 15:32:52 +0000</bug_when>
    <thetext>The WG agrees with this proposal.

In addition, I was asked to add the following bullet point to 2.5.6.2, after the second bullet point:

Ai is xs:error and Bi is a generalized atomic type</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>