<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://w...content-available-to-author-only...3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css" />
<title>Kino</title>
</head>
<body>
<nav>
<h1>Kinematografia</h1>
<ol>
<xsl:apply-templates select="kinematografia/serial | kinematografia/film" mode="header"/>
</ol>
</nav>
<section>
<div id="seans">
<table id="seans">
<tr>
<th>Tytuł</th>
<th>Dzień</th>
<th>Miesiąc</th>
<th>Godzina</th>
<th>Sala</th>
<th>Wolne Miejsca</th>
<th>Cena</th>
</tr>
<xsl:apply-templates select="kinematografia/serial | kinematografia/film" mode="seans"/>
</table>
</div>
<div id="kinoImg">
<xsl:apply-templates select="kinematografia/kinoImg"/>
</div>
<div>
<h2>Produkcje familijne</h2>
<xsl:apply-templates select="kinematografia/film[@dlaDzieci='tak'] | kinematografia/serial[@dlaDzieci='tak']" mode="prom"/>
</div>
<div id="prom">
<h4>Szcególnie Polecamy</h4>
</div>
<div>
<h3>Nasze Filmy</h3>
<ol>
<xsl:apply-templates select="kinematografia/film" mode="listaFilmy"/>
</ol>
</div>
<div>
<h3>Nasze Seriale</h3>
<ol>
<xsl:apply-templates select="kinematografia/serial" mode="listaSeriale"/>
</ol>
</div>
<div>
<h3>Wielce wyróżnione</h3>
<ol>
<xsl:apply-templates select="kinematografia/film/ocena/profesjonaliści[oskary>0]" mode="perły"/>
</ol>
</div>
</section>
</body>
</html>
</xsl:template>
<xsl:template match="serial | film" mode="header">
<ol>
<li>
<xsl:value-of select="tytuł"/>
</li>
<li>
<xsl:value-of select="ocena/internauci/filmweb"/>
</li>
</ol>
</xsl:template>
<xsl:template match="serial | film" mode="seans">
<tr>
<td>
<xsl:value-of select="tytuł"/>
</td>
<td>
<xsl:value-of select="seans/data/dzień"/>
</td>
<td>
<xsl:value-of select="seans/data/miesiąc"/>
</td>
<td>
<xsl:value-of select="seans/data/godzina"/>
</td>
<td>
<xsl:value-of select="seans/sala"/>
</td>
<td>
<xsl:value-of select="seans/wolneMiejsca"/>
</td>
<td>
<xsl:value-of select="seans/cena/normalny"/>
</td>
<td></td>
</tr>
</xsl:template>
<xsl:template match="kinoImg">
<xsl:element name="img">
<xsl:attribute name="src">
<xsl:value-of select="."/>
</xsl:attribute>
</xsl:element>
</xsl:template>
<xsl:template match="film[@dlaDzieci='tak'] | serial[@dlaDzieci='tak']">
<h4>
<xsl:value-of select="tytuł"/>
</h4>
<xsl:element name="img">
<xsl:attribute name="src">
<xsl:value-of select="zdjęcie"/>
</xsl:attribute>
</xsl:element>
</xsl:template>
<xsl:template match="film" mode="listaFilmy">
<li>
<ol>
<li>
<xsl:value-of select="tytuł"/>
</li>
<li>
<xsl:value-of select="produkcja/reżyser"/>
</li>
</ol>
</li>
</xsl:template>
<xsl:template match="serial" mode="listaSeriale">
<li>
<ol>
<li>
<xsl:value-of select="tytuł"/>
</li>
<li>
<xsl:value-of select="produkcja/reżyser"/>
</li>
</ol>
</li>
</xsl:template>
<xsl:template match="profesjonaliści" mode="perły">
<li>
<xsl:value-of select="oskary"/>
</li>
</xsl:template>
</xsl:stylesheet>