Skip to content

Instantly share code, notes, and snippets.

@p3t0r
Created February 26, 2009 12:55
Show Gist options
  • Save p3t0r/70826 to your computer and use it in GitHub Desktop.
Save p3t0r/70826 to your computer and use it in GitHub Desktop.
declare namespace vpro="urn:vpro:guide:2009";
<results>
{
for $prg in //vpro:program[@isMovie='true']
let $scheduleEvents := //vpro:scheduleEvent[vpro:programRef&=$prg/@id]
return
<programWithSchedule>
{$prg}
<schedule>{for $s in $scheduleEvents return $s}</schedule>
</programWithSchedule>
}
</results>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment