- From: <bugzilla@wiggum.w3.org>
- Date: Mon, 08 Dec 2008 21:26:29 +0000
- To: public-qt-comments@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=6288 Summary: [UPDUseCase] Static Typing and Parts Q3 Solution 2 Product: XPath / XQuery / XSLT Version: Candidate Recommendation Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: Update Facility Use Cases AssignedTo: jonathan.robie@redhat.com ReportedBy: andrew.eisenberg@us.ibm.com QAContact: public-qt-comments@w3.org CC: Tom.Brosens@datadirect.com The query in Parts Q3 Solution 2 is: declare updating function local:delete-subtree($p as element(part)) { for $child in doc("part-list.xml")//part where $p/@partid eq $child/@partof return ( delete nodes $child, local:delete-subtree($child) ) }; for $p in doc("part-list.xml")//part[@name="car"] return local:delete-subtree($p) In Bug #5826, Tom Brosens points out that the type of $p in the function declaration should be changed to element(part, xs:untyped). -- 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 Monday, 8 December 2008 21:26:41 UTC