- From: <bugzilla@wiggum.w3.org>
- Date: Tue, 10 Feb 2009 13:09:31 +0000
- To: public-qt-comments@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=6288
Jonathan Robie <jonathan.robie@redhat.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Jonathan Robie <jonathan.robie@redhat.com> 2009-02-10 13:09:30 ---
I am fixing this by adding a note to the example:
Solution 2 (using a recursive updating function):
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)
NOTE:
Because this data is not covered by a schema, an implementation that supports
static typing will raise an error for the comparison $p/@partid eq
$child/@partof. This can be solved by creating a schema for the data and
importing it into the query.
Please let me know if this is not sufficient.
Jonathan
--
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, 10 February 2009 13:09:41 UTC