W3C home > Mailing lists > Public > public-qt-comments@w3.org > July 2003

broken use-case Q4 ?

From: Xavier C. FRANC <xfranc@online.fr>
Date: Tue, 01 Jul 2003 22:13:10 +0000
Message-ID: <3F020776.6040609@online.fr>
To: public-qt-comments@w3.org

It seesm that the use-case Q4 (may 2003) is erroneous:

1) the comment below the query mentions a use of deep-equal() which is not present 
in the query.

2) in the expected result, the "author" element enclosing the last and first names

    cannot be generated by the query:

     for $last in distinct-values($a/last),
         $first in distinct-values($a[last=$last]/first)
             { $last, $first }

  either <author> has to be removed in the result,
  or it has to be added in the query, like this:

             <author>{ $last, $first }</author>

Xavier C. FRANC
Received on Tuesday, 1 July 2003 17:04:35 UTC

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