30546a5036a63270ba555c6b3a4c7291b2011839
[librarian.git] / librarian / epub / xsltContent.xsl
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
4 \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
11         </dc:language>\r
12         <dc:identifier id="BookId" opf:scheme="URI">\r
13           <xsl:apply-templates select="//dc:identifier.url" />\r
14         </dc:identifier>\r
15         <dc:subject>\r
16           <xsl:apply-templates select="//dc:identifier.url" />\r
17         </dc:subject>\r
18         <dc:creator>\r
19           <xsl:apply-templates select="//dc:creator" />\r
20         </dc:creator>\r
21         <dc:publisher>\r
22           <xsl:apply-templates select="//dc:publisher" />\r
23         </dc:publisher>\r
24         <dc:date xsi:type="dcterms:W3CDTF">\r
25           <xsl:apply-templates select="//dc:date" />\r
26         </dc:date>\r
27       </metadata>\r
28       <manifest>\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
33         <item id="DejaVuSerif.ttf" href="DejaVuSerif.ttf" media-type="font/ttf" />\r
34         <item id="DejaVuSerif-Bold.ttf" href="DejaVuSerif-Bold.ttf" media-type="font/ttf" />\r
35         <item id="DejaVuSerif-BoldItalic.ttf" href="DejaVuSerif-BoldItalic.ttf" media-type="font/ttf" />\r
36         <item id="DejaVuSerif-Italic.ttf" href="DejaVuSerif-Italic.ttf" media-type="font/ttf" />\r
37       </manifest>\r
38       <spine toc="toc">\r
39         <itemref idref="titlePage" />\r
40       </spine>\r
41     </package>\r
42   </xsl:template>\r
43 \r
44   <xsl:template match="dc:title" >\r
45     <dc:title>\r
46       <xsl:value-of select="." />\r
47     </dc:title>\r
48   </xsl:template>\r
49 \r
50 </xsl:stylesheet>