Multiple decimal-format declarations
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Committed
|
High
|
Sorin Marian Nasoi |
Bug Description
The XQuery 3.0 spec, section 4.10, says in part:
> It is a static error for a query prolog to contain two decimal format declarations with the same name, or to contain two default decimal format declarations [err:XQST0111].
Yet FOTS test numberformat41:
declare namespace foo = "http://
declare namespace baz = "http://
declare decimal-format foo:decimal1 minus-sign="-" NaN="not a number" ;
declare decimal-format baz:decimal1 NaN="not a number" decimal-
string-join((
);
seems to have two decimal format declarations with the same (resolved) name. Zorba reports this an an error. Is Zorba correct (in which case the test is wrong), or is Zorba wrong (in which case the spec is wrong or unclear)? Does the spec mean that it's actually OK to declare multiple decimal-format declarations with the same name as long as their property names don't overlap (in which case their properties are merged)?
Related branches
- Sorin Marian Nasoi: Approve
- Chris Hillery: Approve
-
Diff: 549 lines (+216/-209)6 files modifiedtest/fots/CMakeLists.txt (+205/-202)
test/fots/ImportFOTS.cmake (+1/-1)
test/fots_driver/FOTSZorbaManifest.xml (+4/-2)
test/fots_driver/feedback.xq (+0/-2)
test/fots_driver/reporting/XQ10/FOTSZorbaManifest.xml (+3/-1)
test/fots_driver/reporting/XQ30/FOTSZorbaManifest.xml (+3/-1)
Changed in zorba: | |
milestone: | 2.9 → 3.0 |
Changed in zorba: | |
importance: | Undecided → High |
Changed in zorba: | |
assignee: | Ghislain Fourny (gislenius) → Sorin Marian Nasoi (sorin.marian.nasoi) |
status: | New → In Progress |
Changed in zorba: | |
status: | In Progress → Fix Committed |
FOTS test numberformat42 is similar.