<?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>2698</bug_id>
          
          <creation_ts>2006-01-11 18:50:31 +0000</creation_ts>
          <short_desc>[XSLT]  what if $group-number is a negative integer</short_desc>
          <delta_ts>2006-02-02 19:38:12 +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 2.0</component>
          <version>Candidate Recommendation</version>
          <rep_platform>All</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="Joanne Tong">joannet</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>7782</commentid>
    <comment_count>0</comment_count>
    <who name="Joanne Tong">joannet</who>
    <bug_when>2006-01-11 18:50:31 +0000</bug_when>
    <thetext>The second paragraph in section 15.2 reads:

&quot;The Nth captured substring (where N &gt; 0) is the string matched by the 
subexpression contained by the Nth left parenthesis in the regex. The zeroeth 
captured substring is the string that matches the entire regex. This means 
that the value of regex-group(0) is initially the same as the value of . 
(dot).&quot;

Is N &lt; 0 an error?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7793</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2006-01-11 20:02:25 +0000</bug_when>
    <thetext>The next sentence after your extract answers the question:

The function returns the zero-length string if there is no captured substring
with the relevant number.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8113</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2006-02-02 19:37:35 +0000</bug_when>
    <thetext>I have added another item to the list of conditions under which a zero-length
string is returned:

* The number is negative.

</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>