<?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>30388</bug_id>
          
          <creation_ts>2019-01-06 18:13:48 +0000</creation_ts>
          <short_desc>[FO31] fn:deep-equal with stripped type annotations not entirely clear</short_desc>
          <delta_ts>2019-01-06 18:13:48 +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>Functions and Operators 3.1</component>
          <version>Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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="Abel Braaksma">abel.online</reporter>
          <assigned_to name="Michael Kay">mike</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>129470</commentid>
    <comment_count>0</comment_count>
    <who name="Abel Braaksma">abel.online</who>
    <bug_when>2019-01-06 18:13:48 +0000</bug_when>
    <thetext>The section on fn:deep-equal (14.2.3) describing comparing element nodes is written based on the type annotation.

Nothing is written in case type annotations are stripped, or when validation is not requested. This process would lead to element nodes receiving the type annotation xs:untyped. This type itself is not clearly defined as &quot;complex content&quot;  type in XDM 3.1 since it doesn&apos;t have a defintion (though this can be inferred from its intended role).

I don&apos;t think there&apos;s an error per se, but I propose we clarify this most common case, for instance with a Note, proposal:

&lt;proposal&gt;
Note: when nodes have not been validated, have been stripped from their type annotations or have been created from an InfoSet, the type annotation of element nodes is xs:untyped [reference to relevant section in XP31?]. For the purpose of this section, xs:untyped should be treated as a complex type with mixed content.
&lt;/proposal&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>