Can anyone tell me if Tamino 4.1 XQuery implements W3c XQuery quantified expressios:
some and every? And distinct function?
If not, any suggestion on how to implement the quantified semantic in Tamino XQuery?
for example,
1.for $a in distinct-values (input()/article/prolog/dateline/date)
let $b := input()/article/prolog/dateline[date=$a]
return
{$a/text()}
{count($b)}
2.
for $a in input()/article[@id=“8”]/body/section
[@heading=“introduction”],
$p in input()/article[@id=“8”]/body/section
[. >> $a][1]
return
{$p/@heading}
3.for $a in input()/article
where some $b in $a/body/abstract/p satisfies
(contains($b, “the”) and contains($b, “hockey”))
return
$a/prolog/title
Thanks in advancd,
Best regards,
Gavinzheng
Hi Gavinzheng,
as you noticed,I have already answered this question and your
subsequent question on the Tamino Java API discussion forum.
In the future, please ask XQuery questions here.
To anybody else,
the answer to this question can be found in the Tamino Java
API discussion forum.
Regards,
Juliane.