- From: <bugzilla@jessica.w3.org>
- Date: Thu, 15 Apr 2010 20:39:15 +0000
- To: public-qt-comments@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=9532
Summary: Invalid example in section B.3.
Product: XPath / XQuery / XSLT
Version: Working drafts
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Scripting Extensions
AssignedTo: john.snelson@oracle.com
ReportedBy: nikolay.ognyanov@gmail.com
QAContact: public-qt-comments@w3.org
The example in section B.3.1. is apparently meant to be
let $uid := doc("users.xml")/users/user_tuple[name = "Roger Smith"]/userid
let $topbid := max(doc("bids.xml")/bids/bid_tuple[itemno = 1007]/bid)
let $newbid := $topbid * 1.1
return
if($newbid <= 240) then block {
insert nodes
<bid_tuple>
<userid>{ data($uid) }</userid>
<itemno>1002</itemno>
<bid>{ $newbid }</bid>
<bid_date>1999-03-03</bid_date>
</bid_tuple>
into doc("bids.xml")/bids;
exit returning <new_bid>{ $newbid }</new_bid>;
} else block {
exit returning <top_bid>{ $topbid }</top_bid>;
}
but is missing "block" in front of blocks.
Transformed representation in B.3.3. is also missing the ';' terminator at the
end of apply 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 Thursday, 15 April 2010 20:39:17 UTC