<?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>17099</bug_id>
          
          <creation_ts>2012-05-18 11:04:43 +0000</creation_ts>
          <short_desc>[FO30] format-integer invalid picture string</short_desc>
          <delta_ts>2012-06-13 08:41: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>Functions and Operators 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>
          
          <blocked>14873</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Kay">mike</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          <cc>tim</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>67859</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2012-05-18 11:04:43 +0000</bug_when>
    <thetext>We now have unambiguous rules for separating the picture string of format-integer into a primary format token and modifiers; but we still have some ambiguity about how errors in the primary format token are handled.

In particular, for the first form of format token (consisting of digits, &apos;#&apos; signs, and grouping separators), we say &quot;With this form, the primary format token must match the regular expression ^((\p{Nd}|#|[^\p{N}\p{L}])+?)$&quot;. The question is, what happens if it doesn&apos;t? There are two possible interpretations:

(a) it doesn&apos;t belong to this form of format token, it belongs to some other form, presumably the last form, which is implementatation defined, falling back to &quot;1&quot; if it&apos;s not recognized.

(b) it&apos;s an error.

I think the intent is (b), in which case we ought to make this clear, and should define an error code.

I propose to clarify that any format token that contains at least one Unicode digit belongs to the first form of format token and must conform to the rules for that form, otherwise a dynamic error occurs, for which I intend to re-use FODF1310.

A number of test cases in test set fn-format-integer are affected, in particular those that currently raise XTDE0030.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68274</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2012-05-29 17:06:43 +0000</bug_when>
    <thetext>The proposal was accepted.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>