epub: Don't rely on margin for stanzas
[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       </manifest>\r
34       <spine toc="toc">\r
35         <itemref idref="titlePage" />\r
36       </spine>\r
37     </package>\r
38   </xsl:template>\r
39 \r
40   <xsl:template match="dc:title" >\r
41     <dc:title>\r
42       <xsl:value-of select="." />\r
43     </dc:title>\r
44   </xsl:template>\r
45 \r
46 </xsl:stylesheet>