<?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>15594</bug_id>
          
          <creation_ts>2012-01-17 13:35:27 +0000</creation_ts>
          <short_desc>[FO30] fn-matches-45</short_desc>
          <delta_ts>2012-03-28 11:03:20 +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.0</component>
          <version>Member-only Editors Drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</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="Tim Mills">tim</reporter>
          <assigned_to name="Michael Kay">mike</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>62807</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-01-17 13:35:27 +0000</bug_when>
    <thetext>This test expects true.  However, in http://www.w3.org/TR/xmlschema-2/#nt-WildcardEsc the wildcard &quot;.&quot; is listed as being equivalent to [^\n\r].  The comment in this test seems to directly contradict this.  Compare with fn-matches-43.
 
   &lt;test-case name=&quot;fn-matches-45&quot;&gt;
      &lt;description&gt; &quot;.&quot; does match CR in default mode&lt;/description&gt;
      &lt;created by=&quot;Michael Kay&quot; on=&quot;2012-01-13&quot;/&gt;
      &lt;test&gt;fn:matches(concat(&apos;Mary&apos;, codepoints-to-string(13), &apos;Jones&apos;), &apos;Mary.Jones&apos;)&lt;/test&gt;
      &lt;result&gt;
         &lt;assert-true/&gt;
      &lt;/result&gt;
   &lt;/test-case&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62808</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2012-01-17 14:03:41 +0000</bug_when>
    <thetext>The test is to highlight that (for reasons unknown to me) the XPath definition here is different from the XSD definition.

5.6.1.1 says: If the s flag is not specified, the meta-character . matches any character except a newline (#x0A) character.

We can pursue this as a spec bug if you wish. One could argue that it contradicts the statement in 5.6:

&quot;The regular expression syntax and semantics are identical to those defined in [XML Schema Part 2: Datatypes Second Edition] with the following additions:&quot;

and that 5.6.1.1 is not trying (or should not try) to be normative about what happens in the absence of any flags.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62809</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-01-17 14:19:01 +0000</bug_when>
    <thetext>As suggeseted, I&apos;ve changed this bug report to be against the 3.0 specification.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65862</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2012-03-20 18:28:20 +0000</bug_when>
    <thetext>The WG decided to solicit information on how existing implementations (including XQuery 1.0 implementations) handle this test case before making a decision.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66123</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2012-03-27 15:57:43 +0000</bug_when>
    <thetext>The WG agreed to align the spec with XSD: that is, &quot;.&quot; matches everything except CR and NL. This change will be made for 3.0. The question of an erratum for the XPath 2.0 version of the spec remains open; we will add this to the informal list of candidate errata being maintained by the editor.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66177</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2012-03-28 11:03:20 +0000</bug_when>
    <thetext>The 3.0 spec has been updated to reflect this change; a note has been added to the list of candidate errata for 1.0/2.0. The test case fn-matches-45 has been updated to reflect the resolution. I am therefore marking this bug as closed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>