please I need someone to check if my answer are correct ornot
the first question is to write XPath expressions ?
show the film elements with a length longer than that of thefilm ‘SONS INTERVIEW’
here what i wrote
for $f in (@len=//film[title/text()=’SONSINTERVIEW’]/length/@len)
return //film[length >$f]/title/text()
the second question is to write xquary to shw the actors namesand id and the number of films and the film titles
and here the xquary
element actors
{ for $aid infn:distinct-values(//actor/text()/@id)
let $aname := (//actor[@id=$aid]/text())
$n_films := count(//film[actor/@id = $aid])
$title:= (//film[actor/@id = $aid]/title)
order by number($n_films) descending
return
element actor
{ attribute id { $aid},
element name { $aname }
element nFilms
PayPal Gateway not configured
PayPal Gateway not configured