1 <?xml version="1.0" encoding="UTF-8"?>
\r
2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dc="http://purl.org/dc/elements/1.1/">
\r
3 <xsl:output method="html" version="1.0" omit-xml-declaration="no" />
\r
5 <xsl:template match="/">
\r
6 <package xmlns="http://www.idpf.org/2007/opf" unique-identifier="BookId" version="2.0">
\r
7 <metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:opf="http://www.idpf.org/2007/opf">
\r
8 <xsl:apply-templates select="//dc:title" />
\r
9 <dc:language xsi:type="dcterms:RFC3066">
\r
10 <xsl:apply-templates select="//dc:language" />
\r
12 <dc:identifier id="BookId" opf:scheme="URI">
\r
13 <xsl:apply-templates select="//dc:identifier.url" />
\r
16 <xsl:apply-templates select="//dc:identifier.url" />
\r
19 <xsl:apply-templates select="//dc:creator" />
\r
22 <xsl:apply-templates select="//dc:publisher" />
\r
24 <dc:date xsi:type="dcterms:W3CDTF">
\r
25 <xsl:apply-templates select="//dc:date" />
\r
29 <item id="toc" href="toc.ncx" media-type="application/x-dtbncx+xml" />
\r
30 <item id="style" href="style.css" media-type="text/css" />
\r
31 <item id="titlePage" href="title.html" media-type="application/xhtml+xml" />
\r
32 <item id="logo_wolnelektury" href="logo_wolnelektury.png" media-type="image/png" />
\r
35 <itemref idref="titlePage" />
\r
40 <xsl:template match="dc:title" >
\r
42 <xsl:value-of select="." />
\r