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 2776 - Allow weight to be any numeric value
Summary: Allow weight to be any numeric value
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Full Text 1.0 (show other bugs)
Version: Working drafts
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Sihem Amer-Yahia
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-27 19:07 UTC by Mary Holstege
Modified: 2006-05-01 18:28 UTC (History)
0 users

See Also:


Attachments

Description Mary Holstege 2006-01-27 19:07:30 UTC
There is no reason why weight should have to be specified with a
numeric literal, much less a decimal one.  

Proposal: 
Change the FTSelection production to:

FTSelection ::= FTOr (FTMatchOption | FTProximity)* ("weight" ExprSingle)?

with the constraint that the ExprSingle must resolve to a numeric value.

It also looks like a section on weights is missing from 3.1 (2.2.1 
promises such a section, but it doesn't materialize); either put this 
constraint there, or put it in 2.2.1 and remove the vacuous forward reference.
Comment 1 Mary Holstege 2006-04-24 15:47:22 UTC
The dangling forward reference still exists in the latest draft
and the requirement that weights be literals also still exists in
the latest draft.  If the WG decided to keep weights as literals
we would appreciate a rationale (and the bug should be more properly
marked as WONTFIX), but in any case the editorial part of this 
comment needs to be addressed.