[Bug 6094] New: Constraints on score variables?

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

           Summary: Constraints on score variables?
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Full Text 1.0
        AssignedTo: jim.melton@acm.org
        ReportedBy: holstege@mathling.com
         QAContact: public-qt-comments@w3.org


Section 2.3 Score Variables does not explicitly state what the scope of score
variables is, nor give any rules about whether, for example, a positional
variable and a score variable in the same for clause can have the same name.

The scope could perhaps be inferred from what XQuery section 3.8.1 says:
<quote>
The scope of a variable bound in a for or let clause comprises all
subexpressions of the containing FLWOR expression that appear after the
variable binding. The scope does not include the expression to which the
variable is bound...

The for and let clauses of a given FLWOR expression may bind the same variable
name more than once. In this case, each new binding occludes the previous one,
which becomes inaccessible in the remainder of the FLWOR expression.
</quote>

But we might want to reference this or adopt it to be clear.

I propose we adopt wording similar to that in XQuery section 3.8.1, e.g.

The expanded QName of a score variable must be distinct from both the expanded
QName of the variable with which it is associated and any positional variable
with which it is associated [err:XQST0089].


-- 
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, 18 September 2008 18:10:17 UTC