Skip to content

Instantly share code, notes, and snippets.

@eedeebee
Forked from crichey/gist:1903593
Created January 22, 2014 00:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eedeebee/8551357 to your computer and use it in GitHub Desktop.
Save eedeebee/8551357 to your computer and use it in GitHub Desktop.
for $speech in (doc()//SPEECH)[1 to 100]
let $speaker := $speech/SPEAKER
let $lines := $speech/LINE
return (
<h2>{$speaker/text()}</h2>,
<p>{for $line in $lines return $line/text()}</p>
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment