boldy do zrobienia

This commit is contained in:
Piotr Baranowski 2020-05-17 17:46:43 +02:00
parent 7a54be7cdc
commit 97aa42d9de

View File

@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="CollectionOfPoems">
<html>
<head>
<style>
.inline h2 {
display: inline-block;
}
.title {
font-style: italic;
}
.verse {
margin: 5px 0;
}
</style>
</head>
<body>
<h1>Zbiór Wierszy</h1>
<xsl:for-each select="Poem">
<div class="inline">
<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:for-each select="Strophe">
<p> <xsl:for-each select="Verse">
<p class="verse"> <xsl:value-of select="."/> </p>
</xsl:for-each></p>
</xsl:for-each>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>