[Bug 1672] [FS] editorial: 4.8.4 Order By and Return Clauses

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


jmdyck@ibiblio.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |




------- Comment #4 from jmdyck@ibiblio.org  2006-10-04 00:59 -------
This one wasn't done properly:
>
> Norm / rule 2
> "for $fs:new1 in Expr"
>     Append "return".
> 
>     Also, Expr should be normalized.

When normalizing Expr, you need the 'Expr' subscript on the big brackets.
You also need to insert a "return" after it.

And I still think the general point could be clearer. How about changing:
    Because an OrderByClause does not affect the type of a FLWORExpr
    expression, the static semantics of a FLWORExpr expression with an
    OrderByClause ...
to:
    Although an OrderByClause does not affect the type of a FLWORExpr,
    it must still undergo static analysis, in case this raises a static
    error. The static semantics of a FLWORExpr with an OrderByClause ....

(Note that this also handles the redundant "FLWORExpr expression".)

Received on Wednesday, 4 October 2006 00:59:04 UTC