This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 10273 - [XQuery11]: Mistaken allowance of missing DFPropertyName pair in EBNF?
Summary: [XQuery11]: Mistaken allowance of missing DFPropertyName pair in EBNF?
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3.0 (show other bugs)
Version: Working drafts
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Jonathan Robie
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-30 07:27 UTC by Brett Zamir
Modified: 2010-09-21 16:26 UTC (History)
2 users (show)

See Also:


Attachments

Description Brett Zamir 2010-07-30 07:27:26 UTC
In http://www.w3.org/TR/xquery-11/#prod-xquery11-DecimalFormatDecl , there is the following EBNF definition of a Decimal Format Declaration:

    "declare" (("decimal-format" QName) | ("default" "decimal-format")) (DFPropertyName "=" StringLiteral)*

The last portion seems to allow omission of DFPropertyName-value pairs. If there is some reason to allow such a declaration without a DFPropertyName, I think it should be spelled out. If not, I believe the "*" should be changed to a "+".
Comment 1 Michael Kay 2010-07-30 09:23:33 UTC
It's entirely reasonable to declare a decimal format in which all the properties are defaulted. If someone does

format-number(123.456, '##.###', $myformat)

then $myformat must be the name of a format declared in the prolog, and it's entirely reasonable for one of the formats to use system defaults for all properties.
Comment 2 Brett Zamir 2010-07-30 09:32:12 UTC
Ok, that is reasonable. I think it might help to spell that fact out though.
Comment 3 Jonathan Robie 2010-09-21 16:26:55 UTC
(In reply to comment #2)
> Ok, that is reasonable. I think it might help to spell that fact out though.

The Working Group agrees. We will explain this in the text.