W3C home > Mailing lists > Public > public-qt-comments@w3.org > December 2009

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

From: <bugzilla@wiggum.w3.org>
Date: Tue, 01 Dec 2009 13:25:26 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-8409-523@http.www.w3.org/Bugs/Public/>

           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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:41 UTC