31 lines
906 B
XML
31 lines
906 B
XML
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
|
|
|
<xsl:template match="CollectionOfPoems">
|
|
<html>
|
|
<head>
|
|
<title>Zbiór wierszy</title>
|
|
</head>
|
|
<body>
|
|
<h1>Zbiór wierszy</h1>
|
|
<xsl:apply-templates/>
|
|
</body>
|
|
</html>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="Poem">
|
|
<h2 style="color:blue;"> <xsl:value-of select="Title" /> </h2>
|
|
<h2 style="color:limegreen"> <xsl:value-of select="Subtitle" /> </h2>
|
|
<h4> <xsl:value-of select="@YearOfPublication" />; Language: <xsl:value-of select="@Language" /> </h4>
|
|
<xsl:for-each select="Strophe">
|
|
<h5 style="color:darkblue; margin-bottom: 3rem">
|
|
<xsl:for-each select="Verse">
|
|
<p> <xsl:value-of select="." /> </p>
|
|
</xsl:for-each>
|
|
</h5>
|
|
</xsl:for-each>
|
|
|
|
<h4>- Surname: <xsl:value-of select="Author/FirstName" /> Name: <xsl:value-of select="Author/LastName" /> </h4>
|
|
<br/>
|
|
</xsl:template>
|
|
|
|
</xsl:stylesheet> |