W3C home > Mailing lists > Public > public-qt-comments@w3.org > March 2005

[XQUC] two question about http://www.w3.org/TR/xquery-use-cases/

From: Frank Yung-Fong Tang <franktang@gmail.com>
Date: Tue, 8 Mar 2005 11:30:58 -0500
Message-ID: <2e4dfd690503080830542101df@mail.gmail.com>
To: public-qt-comments@w3.org

Question 1:

In http://www.w3.org/TR/xquery-use-cases/#xmp-data the text inside the
<price> of the first <book> is
        <price> 65.95</price>
instead of
Notice the space in front of '6'

but the Expected Result: of Q5 is

        <title>TCP/IP Illustrated</title>

Well the "$a/price/text()" remove the white space before '6'? or is
that a mistake in the
sample data?

Question 2:

About Q4

The distinct-values function defined in
http://www.w3.org/TR/xpath-functions/#func-distinct-values  take
But $a/last or $a[last=$last]/first are not atomic type, right? should
these two lines be

instead? or the XQuery will automatically convert it?

also, how about
                where some $ba in $b/author 
                      satisfies ($ba/last = $last and $ba/first=$first)

since $last is return by distinct-values($a/last) eariler, the value
of $last must be an atomicType. but $ba/last is not a atomicType. How
does the comparison perform in this case? Is there a implicit
conversion defined in XQuery to make that comparison happen?

Should these two line change to 
                where some $ba in $b/author 
                      satisfies ($ba/last/text() = $last and

Frank Yung-Fong Tang
Šýšţém Årçĥîţéçţ
Received on Tuesday, 8 March 2005 16:35:14 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:23 UTC