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

[Bug 6288] [UPDUseCase] Static Typing and Parts Q3 Solution 2

From: <bugzilla@wiggum.w3.org>
Date: Tue, 10 Feb 2009 13:09:31 +0000
To: public-qt-comments@w3.org
Message-Id: <E1LWsMl-0003Xt-Hv@wiggum.w3.org>


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,

for $p in doc("part-list.xml")//part[@name="car"]


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.


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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:26 UTC