W3C home > Mailing lists > Public > www-xml-query-comments@w3.org > March 2001

XML Query Use Case SEQ, query 5

From: Michael Dyck <MichaelDyck@home.com>
Date: Wed, 07 Mar 2001 00:05:42 -0800
Message-ID: <3AA5EBD6.24846E24@home.com>
To: www-xml-query-comments@w3.org
XML Query Use Cases
W3C Working Draft 15 February 2001 Use Case SEQ, query 5:

The informal query is: "In Report1, what happened between the first Incision
and the second Incision?"

First, it's not clear to me why the Expected Result isn't
    The fascia was identified and
    <action>#2 0 Maxon stay sutures ...</action>
That is, why does the Expected Result omit the text node immediately
preceding the <action> element node?

Second, the Solution in XQuery does not yield either of these results.
Instead, it yields:
    <geography>in the midline immediately infraumbilical</geography>
    <instrument>using electrocautery.</instrument>
    <action>#2 0 Maxon stay sutures were placed on each side of the midline.
The <geography> and <instrument> elements are children of the first
<incision> element and are therefore after it in document order, so they
satisfy the AFTER expression.  In this case, I think you want something with
the semantics of XPath's "following" axis. Maybe XQuery needs a FOLLOWING

-Michael Dyck
Received on Wednesday, 7 March 2001 03:10:08 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:21:12 UTC