[Bug 2776] Allow weight to be any numeric value

http://www.w3.org/Bugs/Public/show_bug.cgi?id=2776

           Summary: Allow weight to be any numeric value
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Full Text
        AssignedTo: sihem@research.att.com
        ReportedBy: holstege@mathling.com
         QAContact: public-qt-comments@w3.org


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.

Received on Friday, 27 January 2006 19:07:34 UTC