45 lines
1.0 KiB
XML
45 lines
1.0 KiB
XML
<?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> |