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

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