-<?xml version="1.0" encoding="UTF-8"?>\r
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dc="http://purl.org/dc/elements/1.1/">\r
- <xsl:output method="html" version="1.0" encoding="utf-8" />\r
- <xsl:output doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" />\r
- <xsl:output doctype-public="-//W3C//DTD XHTML 1.1//EN" />\r
-\r
- <xsl:template match="/">\r
- <html xmlns="http://www.w3.org/1999/xhtml">\r
- <head>\r
- <link rel="stylesheet" href="style.css" type="text/css" />\r
- <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />\r
- <title>\r
- <xsl:text>Strona tytułowa</xsl:text>\r
- </title>\r
- </head>\r
- <body>\r
- <div id="book-text" xmlns="http://www.w3.org/1999/xhtml">\r
- <div class='title-page'>\r
- <xsl:apply-templates select="//dc:title" mode="poczatek"/>\r
- </div>\r
- </div>\r
- </body>\r
- </html>\r
- </xsl:template>\r
-\r
- <xsl:template match="text()" >\r
- <xsl:value-of select="." disable-output-escaping="yes" />\r
- </xsl:template>\r
-\r
- <xsl:template match="node()" mode="poczatek">\r
- <xsl:value-of select="." />\r
- </xsl:template>\r
-\r
- <xsl:template match="dc:title" mode="poczatek" >\r
- <h1 class="title" xmlns="http://www.w3.org/1999/xhtml">\r
- <xsl:apply-templates />\r
- </h1>\r
- </xsl:template>\r
-\r
-</xsl:stylesheet>
\ No newline at end of file
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <xsl:output method="html" version="1.0" encoding="utf-8" />
+ <xsl:output doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" />
+ <xsl:output doctype-public="-//W3C//DTD XHTML 1.1//EN" />
+
+ <xsl:template match="/">
+ <html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <link rel="stylesheet" href="style.css" type="text/css" />
+ <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
+ <title>
+ <xsl:text>Strona tytułowa</xsl:text>
+ </title>
+ </head>
+ <body>
+ <div id="book-text" xmlns="http://www.w3.org/1999/xhtml">
+ <div class='title-page'>
+ <xsl:apply-templates select="//dzielo_nadrzedne" mode="poczatek"/>
+ <xsl:apply-templates select="//autor_utworu" mode="poczatek"/>
+ <xsl:apply-templates select="//nazwa_utworu" mode="poczatek"/>
+ <!--xsl:apply-templates select="//dc:title" mode="poczatek"/-->
+ </div>
+ </div>
+ </body>
+ </html>
+ </xsl:template>
+
+ <xsl:template match="text()" >
+ <xsl:value-of select="." />
+ </xsl:template>
+
+ <xsl:template match="node()" mode="poczatek">
+ <xsl:value-of select="." />
+ </xsl:template>
+
+ <xsl:template match="dc:title" mode="poczatek" >
+ <h1 class="title" xmlns="http://www.w3.org/1999/xhtml">
+ <xsl:apply-templates />
+ </h1>
+ </xsl:template>
+
+ <xsl:template match="autor_utworu" mode="poczatek">
+ <h2 class="author" >
+ <xsl:apply-templates />
+ </h2>
+ </xsl:template>
+
+ <xsl:template match="dzielo_nadrzedne" mode="poczatek">
+ <h2 class="collection" >
+ <xsl:apply-templates />
+ </h2>
+ </xsl:template>
+
+ <xsl:template match="nazwa_utworu" mode="poczatek" >
+ <h1 class="title" >
+ <xsl:apply-templates />
+ </h1>
+ </xsl:template>
+
+
+
+</xsl:stylesheet>