<?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>24456</bug_id>
          
          <creation_ts>2014-01-31 15:36:58 +0000</creation_ts>
          <short_desc>[xslt 3.0] Subtype relationship among maps</short_desc>
          <delta_ts>2014-02-14 17:12:30 +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>XSLT 3.0</component>
          <version>Last Call drafts</version>
          <rep_platform>PC</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="Michael Kay">mike</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          <cc>cmsmcq</cc>
          
          <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>99537</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2014-01-31 15:36:58 +0000</bug_when>
    <thetext>At the end of section 21.1.1 we have

Ai is map(*) and Bi is map(K, V), for any K and V.

Ai is map(Ka, Va) and Bi is map(Kb, Vb), where subtype-itemtype(Kb, Ka) and subtype-itemtype(Vb, Va).

Ai is function(*) and Bi is map(*), (or, because of the transitivity rules, any other map type).

Ai is function(xs:anyAtomicType) as item()* and Bi is map(*), (or, because of the transitivity rules, any other map type).

I think all four rules have Ai and Bi the wrong way round.

In addition, in the second rule, subtype-itemtype(Vb, Va) should be subtype(Vb, Va) because both Vb and Va are sequence types.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100253</commentid>
    <comment_count>1</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2014-02-11 09:13:36 +0000</bug_when>
    <thetext>We discussed this at the face to face meeting in Prague, checking against the definition of the subtype-itemtype relation, and concluded that the issue description is correct and A and B need to be reversed in all four bullet points.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100596</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2014-02-14 17:12:30 +0000</bug_when>
    <thetext>Change applied.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>