Skip to content

Instantly share code, notes, and snippets.

@crichey
Created February 24, 2012 20:38
Show Gist options
  • Save crichey/1903593 to your computer and use it in GitHub Desktop.
Save crichey/1903593 to your computer and use it in GitHub Desktop.
Shakespeare
for $speech in doc()//SPEECH
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