W3C home > Mailing lists > Public > public-qt-comments@w3.org > January 2007

[XPerrata] Missing parentheses in example

From: <emmanuel.lazinier@dga.defense.gouv.fr>
Date: Wed, 31 Jan 2007 14:30:04 +0100
To: public-qt-comments@w3.org
Message-Id: <20070131135944.E23C4749C3@dgarmsmsg01p.dga.defense.gouv.fr>
At paragraph "3.7 For Expressions", example should be 

for $a in fn:distinct-values(book/author)
return ((book/author[. = $a])[1], book[author = $a]/title)

As example currently stands the result of the expression would be 

   <author>Stevens</author> 
  <author>Stevens</author> 
  <title>TCP/IP Illustrated</title> 
  <title>Advanced Programming in the Unix Environment</title> 
  <author>Abiteboul</author> 
  <title>Data on the Web</title> 
  <author>Buneman</author> 
  <title>Data on the Web</title> 
  <author>Suciu</author> 
  <title>Data on the Web</title> 

Emmanuel Lazinier
------------------------------------------------------------------
Chargé d'étude NTIC
DET/SMCO
8, bld Victor
00303 armées
Tel. 01.57.24.74.30
Fax. 01.57.24.82.85
Received on Wednesday, 31 January 2007 18:38:13 UTC

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