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

XML Query: use case XMP, query 5

From: Michael Dyck <MichaelDyck@home.com>
Date: Thu, 01 Mar 2001 23:25:09 -0800
Message-ID: <3A9F4AD5.82D72A0B@home.com>
To: www-xml-query-comments@w3.org
XML Query Use Cases
W3C Working Draft 15 February 2001

In 1.1.2, bib.xml gives book titles with no leading or trailing spaces, but
in 1.1.4, reviews.xml gives two of the titles with a leading space. In order
to obtain the Expected Result for Q5 (, the query processor must
know to ignore the leading space. Was this an intentional requirement?

The "Solution in XQuery" uses
    $b/title = $a/title
which (as far as XPath is concerned) is a character-for-character comparison
of the string-values of two elements, which would *not* succeed if one of
the titles had a leading space.

(This comment is a repeat of
which doesn't appear to have received a response.)

-Michael Dyck
Received on Friday, 2 March 2001 02:28:53 UTC

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