# Lösungen zu Übung 5: Play-Auflistung (Burst-Mode)

Im Folgenden finden Sie die Lösungsdateien zu Übung 5 unter Play-Auflistung.

Code-Beispiel: Lösungs-XSLT zu Übung 5.

``````<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:hdm="http://www.hdm-stuttgart.de" exclude-result-prefixes="xs hdm" version="3.0">
<xsl:output method="xml" indent="yes" />
<xsl:strip-space elements="*" />
<xsl:mode streamable="yes" on-no-match="shallow-copy" />
<xsl:mode streamable="no" on-no-match="shallow-copy" name="no-Streaming" />
<xsl:template match="play">
<xsl:variable name="copy" select="copy-of(.)" />
<xsl:apply-templates select="\$copy" mode="no-Streaming" />
</xsl:template>
<xsl:template match="play" mode="no-Streaming">
<xsl:copy>
<xsl:apply-templates select="title | scndescr | playsubt" mode="#current" />
<acts>
<xsl:value-of select="count(.//act)" />
</acts>
<scenes>
<xsl:value-of select="count(.//scene)" />
</scenes>
<titles>
<xsl:apply-templates select=".//act//title" mode="#current" />
</titles>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
``````

Code-Beispiel: Vollständiges Output-XML zu Übung 5.

``````<?xml version="1.0" encoding="UTF-8"?>
<plays>
<play>
<title>A Midsummer Night's Dream</title>
<scndescr>SCENE Athens, and a wood near it.</scndescr>
<playsubt>A MIDSUMMER NIGHT'S DREAM</playsubt>
<acts>5</acts>
<scenes>9</scenes>
<titles>
<title>ACT I</title>
<title>SCENE I. Athens. The palace of THESEUS.</title>
<title>SCENE II. Athens. QUINCE'S house.</title>
<title>ACT II</title>
<title>SCENE I. A wood near Athens.</title>
<title>SCENE II. Another part of the wood.</title>
<title>ACT III</title>
<title>SCENE I. The wood. TITANIA lying asleep.</title>
<title>SCENE II. Another part of the wood.</title>
<title>ACT IV</title>
<title>SCENE I. The same. LYSANDER, DEMETRIUS, HELENA, and HERMIA lying asleep.</title>
<title>SCENE II. Athens. QUINCE'S house.</title>
<title>ACT V</title>
<title>SCENE I. Athens. The palace of THESEUS.</title>
</titles>
</play>
<play>
<title>The Tragedy of Hamlet, Prince of Denmark</title>
<scndescr>SCENE Denmark.</scndescr>
<playsubt>HAMLET</playsubt>
<acts>5</acts>
<scenes>20</scenes>
<titles>
<title>ACT I</title>
<title>SCENE I. Elsinore. A platform before the castle.</title>
<title>SCENE II. A room of state in the castle.</title>
<title>SCENE III. A room in Polonius' house.</title>
<title>SCENE IV. The platform.</title>
<title>SCENE V. Another part of the platform.</title>
<title>ACT II</title>
<title>SCENE I. A room in POLONIUS' house.</title>
<title>SCENE II. A room in the castle.</title>
<title>ACT III</title>
<title>SCENE I. A room in the castle.</title>
<title>SCENE II. A hall in the castle.</title>
<title>SCENE III. A room in the castle.</title>
<title>SCENE IV. The Queen's closet.</title>
<title>ACT IV</title>
<title>SCENE I. A room in the castle.</title>
<title>SCENE II. Another room in the castle.</title>
<title>SCENE III. Another room in the castle.</title>
<title>SCENE IV. A plain in Denmark.</title>
<title>SCENE V. Elsinore. A room in the castle.</title>
<title>SCENE VI. Another room in the castle.</title>
<title>SCENE VII. Another room in the castle.</title>
<title>ACT V</title>
<title>SCENE I. A churchyard.</title>
<title>SCENE II. A hall in the castle.</title>
</titles>
</play>
<play>
<title>The Life and Death of King John</title>
<scndescr>SCENE Partly in England, and partly in France.</scndescr>
<playsubt>KING JOHN</playsubt>
<acts>5</acts>
<scenes>16</scenes>
<titles>
<title>ACT I</title>
<title>SCENE I. KING JOHN'S palace.</title>
<title>ACT II</title>
<title>SCENE I. France. Before Angiers.</title>
<title>ACT III</title>
<title>SCENE I. The French King's pavilion.</title>
<title>SCENE II. The same. Plains near Angiers.</title>
<title>SCENE III. The same.</title>
<title>SCENE IV. The same. KING PHILIP'S tent.</title>
<title>ACT IV</title>
<title>SCENE I. A room in a castle.</title>
<title>SCENE II. KING JOHN'S palace.</title>
<title>SCENE III. Before the castle.</title>
<title>ACT V</title>
<title>SCENE I. KING JOHN'S palace.</title>
<title>SCENE II. LEWIS's camp at St. Edmundsbury.</title>
<title>SCENE III. The field of battle.</title>
<title>SCENE IV. Another part of the field.</title>
<title>SCENE V. The French camp.</title>
<title>SCENE VI. An open place in the neighbourhood of Swinstead Abbey.</title>
<title>SCENE VII. The orchard in Swinstead Abbey.</title>
</titles>
</play>
<play>
<title>The Tragedy of King Lear</title>
<scndescr>SCENE Britain.</scndescr>
<playsubt>KING LEAR</playsubt>
<acts>5</acts>
<scenes>26</scenes>
<titles>
<title>ACT I</title>
<title>SCENE I. King Lear's palace.</title>
<title>SCENE II. The Earl of Gloucester's castle.</title>
<title>SCENE III. The Duke of Albany's palace.</title>
<title>SCENE IV. A hall in the same.</title>
<title>SCENE V. Court before the same.</title>
<title>ACT II</title>
<title>SCENE I. GLOUCESTER's castle.</title>
<title>SCENE II. Before Gloucester's castle.</title>
<title>SCENE III. A wood.</title>
<title>SCENE IV. Before GLOUCESTER's castle. KENT in the stocks.</title>
<title>ACT III</title>
<title>SCENE I. A heath.</title>
<title>SCENE II. Another part of the heath. Storm still.</title>
<title>SCENE III. Gloucester's castle.</title>
<title>SCENE IV. The heath. Before a hovel.</title>
<title>SCENE V. Gloucester's castle.</title>
<title>SCENE VI. A chamber in a farmhouse adjoining the castle.</title>
<title>SCENE VII. Gloucester's castle.</title>
<title>ACT IV</title>
<title>SCENE I. The heath.</title>
<title>SCENE II. Before ALBANY's palace.</title>
<title>SCENE III. The French camp near Dover.</title>
<title>SCENE IV. The same. A tent.</title>
<title>SCENE V. Gloucester's castle.</title>
<title>SCENE VI. Fields near Dover.</title>
<title>SCENE VII. A tent in the French camp. LEAR on a bed asleep, soft music playing; Gentleman, and others attending.</title>
<title>ACT V</title>
<title>SCENE I. The British camp, near Dover.</title>
<title>SCENE II. A field between the two camps.</title>
<title>SCENE III. The British camp near Dover.</title>
</titles>
</play>
<play>
<title>Love's Labor's Lost</title>
<scndescr>SCENE Navarre.</scndescr>
<playsubt>LOVE'S LABOURS LOST</playsubt>
<acts>5</acts>
<scenes>9</scenes>
<titles>
<title>ACT I</title>
<title>SCENE I. The king of Navarre's park.</title>
<title>SCENE II. The same.</title>
<title>ACT II</title>
<title>SCENE I. The same.</title>
<title>ACT III</title>
<title>SCENE I. The same.</title>
<title>ACT IV</title>
<title>SCENE I. The same.</title>
<title>SCENE II. The same.</title>
<title>SCENE III. The same.</title>
<title>ACT V</title>
<title>SCENE I. The same.</title>
<title>SCENE II. The same.</title>
</titles>
</play>
<play>
<title>The Tragedy of Macbeth</title>
<scndescr>SCENE Scotland: England.</scndescr>
<playsubt>MACBETH</playsubt>
<acts>5</acts>
<scenes>28</scenes>
<titles>
<title>ACT I</title>
<title>SCENE I. A desert place.</title>
<title>SCENE II. A camp near Forres.</title>
<title>SCENE III. A heath near Forres.</title>
<title>SCENE IV. Forres. The palace.</title>
<title>SCENE V. Inverness. Macbeth's castle.</title>
<title>SCENE VI. Before Macbeth's castle.</title>
<title>SCENE VII. Macbeth's castle.</title>
<title>ACT II</title>
<title>SCENE I. Court of Macbeth's castle.</title>
<title>SCENE II. The same.</title>
<title>SCENE III. The same.</title>
<title>SCENE IV. Outside Macbeth's castle.</title>
<title>ACT III</title>
<title>SCENE I. Forres. The palace.</title>
<title>SCENE II. The palace.</title>
<title>SCENE III. A park near the palace.</title>
<title>SCENE IV. The same. Hall in the palace.</title>
<title>SCENE V. A Heath.</title>
<title>SCENE VI. Forres. The palace.</title>
<title>ACT IV</title>
<title>SCENE I. A cavern. In the middle, a boiling cauldron.</title>
<title>SCENE II. Fife. Macduff's castle.</title>
<title>SCENE III. England. Before the King's palace.</title>
<title>ACT V</title>
<title>SCENE I. Dunsinane. Ante-room in the castle.</title>
<title>SCENE II. The country near Dunsinane.</title>
<title>SCENE III. Dunsinane. A room in the castle.</title>
<title>SCENE IV. Country near Birnam wood.</title>
<title>SCENE V. Dunsinane. Within the castle.</title>
<title>SCENE VI. Dunsinane. Before the castle.</title>
<title>SCENE VII. Another part of the field.</title>
<title>SCENE VIII. Another part of the field.</title>
</titles>
</play>
<play>
<title>The Merchant of Venice</title>
<scndescr>SCENE Partly at Venice, and partly at Belmont, the seat of PORTIA, on the Continent.</scndescr>
<playsubt>THE MERCHANT OF VENICE</playsubt>
<acts>5</acts>
<scenes>20</scenes>
<titles>
<title>ACT I</title>
<title>SCENE I. Venice. A street.</title>
<title>SCENE II: Belmont. A room in PORTIA'S house.</title>
<title>SCENE III. Venice. A public place.</title>
<title>ACT II</title>
<title>SCENE I. Belmont. A room in PORTIA'S house.</title>
<title>SCENE II. Venice. A street.</title>
<title>SCENE III. The same. A room in SHYLOCK'S house.</title>
<title>SCENE IV. The same. A street.</title>
<title>SCENE V. The same. Before SHYLOCK'S house.</title>
<title>SCENE VI. The same.</title>
<title>SCENE VII. Belmont. A room in PORTIA'S house.</title>
<title>SCENE VIII. Venice. A street.</title>
<title>SCENE IX. Belmont. A room in PORTIA'S house.</title>
<title>ACT III</title>
<title>SCENE I. Venice. A street.</title>
<title>SCENE II. Belmont. A room in PORTIA'S house.</title>
<title>SCENE III. Venice. A street.</title>
<title>SCENE IV. Belmont. A room in PORTIA'S house.</title>
<title>SCENE V. The same. A garden.</title>
<title>ACT IV</title>
<title>SCENE I. Venice. A court of justice.</title>
<title>SCENE II. The same. A street.</title>
<title>ACT V</title>
<title>SCENE I. Belmont. Avenue to PORTIA'S house.</title>
</titles>
</play>
<play>
<title>The Life of Timon of Athens</title>
<scndescr>SCENE Athens, and the neighbouring woods.</scndescr>
<playsubt>TIMON OF ATHENS</playsubt>
<acts>5</acts>
<scenes>17</scenes>
<titles>
<title>ACT I</title>
<title>SCENE I. Athens. A hall in Timon's house.</title>
<title>SCENE II. A banqueting-room in Timon's house.</title>
<title>ACT II</title>
<title>SCENE I. A Senator's house.</title>
<title>SCENE II. The same. A hall in Timon's house.</title>
<title>ACT III</title>
<title>SCENE I. A room in Lucullus' house.</title>
<title>SCENE II. A public place.</title>
<title>SCENE III. A room in Sempronius' house.</title>
<title>SCENE IV. The same. A hall in Timon's house.</title>
<title>SCENE V. The same. The senate-house. The Senate sitting.</title>
<title>SCENE VI. The same. A banqueting-room in Timon's house.</title>
<title>ACT IV</title>
<title>SCENE I. Without the walls of Athens.</title>
<title>SCENE II. Athens. A room in Timon's house.</title>
<title>SCENE III. Woods and cave, near the seashore.</title>
<title>ACT V</title>
<title>SCENE I. The woods. Before Timon's cave.</title>
<title>SCENE II. Before the walls of Athens.</title>
<title>SCENE III. The woods. Timon's cave, and a rude tomb seen.</title>
<title>SCENE IV. Before the walls of Athens.</title>
</titles>
</play>
<play>
<title>The Tragedy of Titus Andronicus</title>
<scndescr>SCENE Rome, and the country near it.</scndescr>
<playsubt>TITUS ANDRONICUS</playsubt>
<acts>5</acts>
<scenes>14</scenes>
<titles>
<title>ACT I</title>
<title>SCENE I. Rome. Before the Capitol.</title>
<title>ACT II</title>
<title>SCENE I. Rome. Before the Palace.</title>
<title>SCENE II. A forest near Rome. Horns and cry of hounds heard.</title>
<title>SCENE III. A lonely part of the forest.</title>
<title>SCENE IV. Another part of the forest.</title>
<title>ACT III</title>
<title>SCENE I. Rome. A street.</title>
<title>SCENE II. A room in Titus's house. A banquet set out.</title>
<title>ACT IV</title>
<title>SCENE I. Rome. Titus's garden.</title>
<title>SCENE II. The same. A room in the palace.</title>
<title>SCENE III. The same. A public place.</title>
<title>SCENE IV. The same. Before the palace.</title>
<title>ACT V</title>
<title>SCENE I. Plains near Rome.</title>
<title>SCENE II. Rome. Before TITUS's house.</title>
<title>SCENE III. Court of TITUS's house. A banquet set out.</title>
</titles>
</play>
</plays>
``````
 Tipp der data2type-Redaktion: Zum Thema XSLT bieten wir auch folgende Schulungen zur Vertiefung und professionellen Fortbildung an: