<?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>30080</bug_id>
          
          <creation_ts>2017-03-24 17:13:47 +0000</creation_ts>
          <short_desc>analyzeString-029 assertions assume analyze-string returns untyped values</short_desc>
          <delta_ts>2017-03-24 17:57:36 +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 3 &amp; XPath 3 Test Suite</component>
          <version>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</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="Josh Spiegel">josh.spiegel</reporter>
          <assigned_to name="O&apos;Neil Delpratt">oneil</assigned_to>
          <cc>mike</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>128503</commentid>
    <comment_count>0</comment_count>
    <who name="Josh Spiegel">josh.spiegel</who>
    <bug_when>2017-03-24 17:13:47 +0000</bug_when>
    <thetext>Some of the test assertions assume the result of analyze-string is untyped.  For example:

&lt;assert&gt;$result/out/fn:analyze-string-result[1]/fn:match[1]/fn:group[@nr=4] = &apos;Sample test/some other keys/&apos;&lt;/assert&gt;

Atomization of the result of the path expression may raise an error.  i.e. it is a complex type with element only content (FOTY0012)


I propose to update the assertions as follows:

&lt;assert&gt;string($result/out/fn:analyze-string-result[1]/fn:match[1]/fn:group[@nr=4]) = &apos;Sample test/some other keys/&apos;&lt;/assert&gt;

Which should work in both cases.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128504</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2017-03-24 17:30:46 +0000</bug_when>
    <thetext>The fn:group element (and all the others) have mixed=&quot;true&quot; in the type definition, so atomization should not fail. I don&apos;t think this change is necessary.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128505</commentid>
    <comment_count>2</comment_count>
    <who name="Josh Spiegel">josh.spiegel</who>
    <bug_when>2017-03-24 17:57:36 +0000</bug_when>
    <thetext>Yes, you&apos;re right, thanks.  Closing as invalid.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>