W3C home > Mailing lists > Public > public-qt-comments@w3.org > May 2012

[Bug 17099] New: [FO30] format-integer invalid picture string

From: <bugzilla@jessica.w3.org>
Date: Fri, 18 May 2012 11:04:43 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-17099-523@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=17099

           Summary: [FO30] format-integer invalid picture string
           Product: XPath / XQuery / XSLT
           Version: Last Call drafts
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Functions and Operators 3.0
        AssignedTo: mike@saxonica.com
        ReportedBy: mike@saxonica.com
         QAContact: public-qt-comments@w3.org


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, '#'
signs, and grouping separators), we say "With this form, the primary format
token must match the regular expression ^((\p{Nd}|#|[^\p{N}\p{L}])+?)$". The
question is, what happens if it doesn't? There are two possible
interpretations:

(a) it doesn'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 "1" if it's not recognized.

(b) it'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.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Friday, 18 May 2012 11:04:50 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:38 UTC