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
|
|
|
|
|
|
|
<xsl:template match="CollectionOfPoems">
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<style>
|
2020-05-17 19:43:07 +02:00
|
|
|
div h2 {
|
2020-05-17 17:46:43 +02:00
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.title {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
|
|
|
.verse {
|
2020-05-17 19:43:07 +02:00
|
|
|
margin: 0;
|
2020-05-17 17:46:43 +02:00
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>Zbiór Wierszy</h1>
|
2020-05-17 19:43:07 +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">
|
|
|
|
<p><xsl:apply-templates select="Verse"/></p>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="Verse">
|
|
|
|
<p class="verse">
|
|
|
|
<xsl:value-of select="."/>
|
|
|
|
<xsl:apply-templates select="Bold"/>
|
|
|
|
</p>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="Bold">
|
|
|
|
<b>
|
|
|
|
<xsl:apply-templates/>
|
|
|
|
</b>
|
|
|
|
</xsl:template>
|
|
|
|
|
2020-05-17 17:46:43 +02:00
|
|
|
</xsl:stylesheet>
|