[Bug 8409] New: WS Q2 - Scripting Expression in LET

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

           Summary: WS Q2 - Scripting Expression in LET
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Scripting Extensions Use Cases
        AssignedTo: john.snelson@oracle.com
        ReportedBy: peter.fischer@inf.ethz.ch
         QAContact: public-qt-comments@w3.org


In the main document, 2.4.2 "FLWOR Expressions" states that let (for, where,
...) must contain either simple or updating expressions.

In the Use Case "WS" - XQuery for Web Services, Q2 defines a sequential
function local:check-user-and-log($username as xs:string).

This function is used in a FLWOR expression in the main query:

let $user := replace($request/url, "^http://.*/([^/]+)/add$", "$1")
let $blog := local:check-user-and-log($user)
return ( ....

If my understanding is right and the semantics have not changed from what is
currently stated in the documents, I'd suggest moving these two variables into
a block, where variable initializers might be sequential expressions.


-- 
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 Tuesday, 1 December 2009 13:25:28 UTC