6752be3200adf5e1d9506b2f1b94be76999a9b16
[librarian.git] / librarian / epub / xsltContent.xsl
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dc="http://purl.org/dc/elements/1.1/">
3   <xsl:output method="html" version="1.0" omit-xml-declaration="no" />
4
5   <xsl:template match="/">
6     <package xmlns="http://www.idpf.org/2007/opf" unique-identifier="BookId" version="2.0">
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">
8         <xsl:apply-templates select="//dc:title" />
9         <dc:language xsi:type="dcterms:RFC3066">
10           <xsl:apply-templates select="//dc:language" />
11         </dc:language>
12         <dc:identifier id="BookId" opf:scheme="URI">
13           <xsl:apply-templates select="//dc:identifier.url" />
14         </dc:identifier>
15         <dc:subject>
16           <xsl:apply-templates select="//dc:identifier.url" />
17         </dc:subject>
18         <dc:creator>
19           <xsl:apply-templates select="//dc:creator" />
20         </dc:creator>
21         <dc:publisher>
22           <xsl:apply-templates select="//dc:publisher" />
23         </dc:publisher>
24         <dc:date xsi:type="dcterms:W3CDTF">
25           <xsl:apply-templates select="//dc:date" />
26         </dc:date>
27       </metadata>
28       <manifest>
29         <item id="toc" href="toc.ncx" media-type="application/x-dtbncx+xml" />
30         <item id="style" href="style.css" media-type="text/css" />
31         <item id="titlePage" href="title.html" media-type="application/xhtml+xml" />
32         <item id="logo_wolnelektury" href="logo_wolnelektury.png" media-type="image/png" />
33         <item id="jedenprocent" href="jedenprocent.png" media-type="image/png" />
34         <item id="DejaVuSerif.ttf" href="DejaVuSerif.ttf" media-type="font/ttf" />
35         <item id="DejaVuSerif-Bold.ttf" href="DejaVuSerif-Bold.ttf" media-type="font/ttf" />
36         <item id="DejaVuSerif-BoldItalic.ttf" href="DejaVuSerif-BoldItalic.ttf" media-type="font/ttf" />
37         <item id="DejaVuSerif-Italic.ttf" href="DejaVuSerif-Italic.ttf" media-type="font/ttf" />
38       </manifest>
39       <spine toc="toc">
40         <itemref idref="titlePage" />
41       </spine>
42     </package>
43   </xsl:template>
44
45   <xsl:template match="dc:title" >
46     <dc:title>
47       <xsl:value-of select="." />
48     </dc:title>
49   </xsl:template>
50
51 </xsl:stylesheet>