(: declare functions :) declare function local:cd-info($cd as element()? ) as element()? { let $t := $cd/title let $a := $cd/artist return
Title: {data($t)}
Artist: {data($a)}
{$c} { for $x in doc("../../samples/cdcatalog.xml")/catalog/cd where $x/country = $c return