XML technologies / XSLT / XSLT 3.0 / XSLT streaming / XML sample data / Plays XML
The file plays.xml is a collection of various works by Shakespeare in alphabetical order. Its structure is relatively simple, and none of its elements have attributes. This file is required for Exercise 5 (Play listing).
Note from the data2type editors:
Since the following code example would exceed the scope of this page (about 48000 lines of code), only an excerpt from the input file is shown here.
Code example: plays.xml (excerpt).
<?xml version="1.0" encoding="UTF-8"?>
<plays>
<play>
<title>A Midsummer Night's Dream</title>
<fm>
...
<p> This work may be freely copied and distributed worldwide.</p>
</fm>
<personae>
<title>Dramatis Personae</title>
<persona>THESEUS, Duke of Athens.</persona>
<persona>EGEUS, father to Hermia.</persona>
<pgroup>
<persona>LYSANDER</persona>
<persona>DEMETRIUS</persona>
<grpdescr>in love with Hermia.</grpdescr>
</pgroup>
...
</personae>
<scndescr>SCENE Athens, and a wood near it.</scndescr>
<playsubt>A MIDSUMMER NIGHT'S DREAM</playsubt>
<act>
<title>ACT I</title>
<scene>
<title>SCENE I. Athens. The palace of THESEUS.</title>
<stagedir>Enter THESEUS, HIPPOLYTA, PHILOSTRATE</stagedir>
<speech>
<speaker>THESEUS</speaker>
<line>Now, fair Hippolyta, our nuptial hour</line>
...
</speech>
...
</scene>
...
</act>
...
</play>
...
</plays>
Line 2: <plays> — Root element, describes the collection.
Line 3: <play> — Element for a particular play.
Line 4: <title> — The name of the play.
Line 5: <fm> — Legal disclaimer.
Line 9: <personae> — List of all characters in the play.
Line 11: <persona> — Name of an individual character.
Line 13: <pgroup> — A grouping of characters.
Line 16: <grpdescr> — Group description.
Line 20: <scndescr> — Short scene description.
Line 21: <playsubt> — Subtitle of the play.
Line 26: <stagedir> — Description of the stage.
Line 27: <speech> — A speech.
Line 28: <speaker> — The speaker.
Line 29: <line> — A line of text.