2020-05-17 17:46:43 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
2020-05-17 19:43:07 +02:00
|
|
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
|
2020-05-17 17:46:43 +02:00
|
|
|
|
2020-05-18 10:46:57 +02:00
|
|
|
<xsl:template match="/CollectionOfPoems">
|
2020-05-17 17:46:43 +02:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<style>
|
2020-05-17 19:43:07 +02:00
|
|
|
div h2 {
|
2020-05-18 10:48:51 +02:00
|
|
|
display: inline-block;
|
2020-05-17 17:46:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.title {
|
2020-05-18 10:48:51 +02:00
|
|
|
font-style: italic;
|
2020-05-17 17:46:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.verse {
|
2020-05-18 10:48:51 +02:00
|
|
|
margin: 0;
|
2020-05-17 17:46:43 +02:00
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>Zbiór Wierszy</h1>
|
2020-05-18 10:48:51 +02:00
|
|
|
<xsl:apply-templates select="Poem"/>
|
2020-05-17 17:46:43 +02:00
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
</xsl:template>
|
|
|
|
|
2020-05-17 19:43:07 +02:00
|
|
|
<xsl:template match="Poem">
|
|
|
|
<div>
|
|
|
|
<h2><xsl:value-of select="Author/FirstName"/></h2>
|
|
|
|
<h2><xsl:value-of select="Author/LastName"/></h2>
|
|
|
|
<h2> - </h2>
|
|
|
|
<h2 class="title"><xsl:value-of select="Title"/></h2>
|
|
|
|
<xsl:if test="Subtitle">
|
|
|
|
<h2 class="title">(<xsl:value-of select="Subtitle"/>)</h2>
|
|
|
|
</xsl:if>
|
|
|
|
</div>
|
|
|
|
<xsl:apply-templates select="Strophe"/>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="Strophe">
|
2020-05-18 10:48:51 +02:00
|
|
|
<p>
|
|
|
|
<xsl:apply-templates select="Verse"/>
|
|
|
|
</p>
|
2020-05-17 19:43:07 +02:00
|
|
|
</xsl:template>
|
|
|
|
|
2020-05-18 10:46:57 +02:00
|
|
|
|
2020-05-17 19:43:07 +02:00
|
|
|
<xsl:template match="Verse">
|
|
|
|
<p class="verse">
|
2020-05-18 10:46:57 +02:00
|
|
|
<xsl:apply-templates/>
|
2020-05-17 19:43:07 +02:00
|
|
|
</p>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="Bold">
|
2020-05-18 10:48:51 +02:00
|
|
|
<b>
|
|
|
|
<xsl:apply-templates/>
|
|
|
|
</b>
|
|
|
|
</xsl:template>
|
2020-05-17 19:43:07 +02:00
|
|
|
|
2020-05-17 17:46:43 +02:00
|
|
|
</xsl:stylesheet>
|