- From: <bugzilla@jessica.w3.org>
- Date: Thu, 30 Sep 2010 14:09:03 +0000
- To: public-qt-comments@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=10856
Summary: [XQuery11] Decimal format declarations do not define
how properties are interpreted.
Product: XPath / XQuery / XSLT
Version: Member-only Editors Drafts
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: normal
Priority: P2
Component: XQuery 1.1
AssignedTo: jonathan.robie@redhat.com
ReportedBy: oliver@cbcl.co.uk
QAContact: public-qt-comments@w3.org
Group: XSLXQuery_WG
The entirety of Section 4.10 is as follows:
[18] DecimalFormatDecl ::= "declare" (("decimal-format"
EQName) | ("default" "decimal-format")) (DFPropertyName "=" StringLiteral)*
[19] DFPropertyName ::= "decimal-separator" |
"grouping-separator" | "infinity" | "minus-sign" | "NaN" | "percent" |
"per-mille" | "zero-digit" | "digit" | "pattern-separator"
[Definition: A decimal-format declaration defines statically known decimal
formats, which define the properties used to format numbers using the
fn:format-number() function], as described in [XQuery and XPath Functions and
Operators 1.1].
It is a static error for a query prolog to contain two decimal formats with the
same name, or to contain two default decimal formats. [err:XQST0111]. It is a
static error for a decimal-format to specify a value that is not legal for a
given property, as described in statically known decimal formats
[err:XQST0097]. It is a static error if, for any named or unnamed decimal
format, the properties representing characters used in a picture string do not
each have distinct values. These properties are decimal-separator-sign,
grouping-separator, percent-sign, per-mille-sign, zero-digit, digit-sign, and
pattern-separator-sign [err:XQST0098].
So this explains that a decimal format declaration defines a decimal format;
but it doesn't explain how!
It doesn't explain for example that the StringLiteral following the
DFPropertyName "per-mille" defines the value of the "per-mille-sign" property.
--
Configure bugmail: http://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 Thursday, 30 September 2010 14:09:08 UTC