XML Query Use Case PARTS, query 1

XML Query Use Cases
W3C Working Draft 15 February 2001

1.8.4.1 Use Case PARTS, query 1:

Is there any reason why the Expected Result for this query has an XML
declaration, but none of the other Expected Results do?

In the Solution in XQuery, both occurrences of
    /part
should presumably be changed to
    //part
or
    /partlist/part

Also, the predicate
    [@partid = $p/@partof]
should be
    [@partof = $p/@partid]

-Michael Dyck

Received on Sunday, 18 March 2001 03:34:40 UTC