nicer full html
[librarian.git] / librarian / xslt / book2html.xslt
index 81e865b..c7b7215 100755 (executable)
         <xsl:when test="@full-page">
             <html>
             <head>
-                <title>Książka z serwisu WolneLektury.pl</title>
+                <title><xsl:apply-templates mode="inline" select="//nazwa_utworu" /></title>
                 <meta http-equiv="content-type" content="text/html;charset=utf-8"/>
-            </head>
-            <style>
+                <style>
                 body {
                     font-size: 16px;
                     font: Georgia, "Times New Roman", serif;
@@ -46,6 +45,7 @@
 
                 img {
                     border: none;
+                    max-width: 100%;
                 }
 
 
                 @media print {
                     #menu {display: none;}
                 }
-            </style>
+                </style>
+            </head>
             <body>
                 <xsl:call-template name="book-text" />
             </body>
     <hr class="spacer-line" />
 </xsl:template>
 
+<xsl:template match="ilustr">
+    <div xmlns="http://www.w3.org/1999/xhtml" class="ilustr">
+      <img xmlns="http://www.w3.org/1999/xhtml" alt="ilustracja">
+        <xsl:attribute name="src">
+          <xsl:value-of select="@src" />
+        </xsl:attribute>
+        <xsl:attribute name="alt">
+          <xsl:apply-templates mode="inline" />
+        </xsl:attribute>
+        <xsl:attribute name="title">
+          <xsl:apply-templates mode="inline" />
+        </xsl:attribute>
+      </img>
+    </div>
+</xsl:template>
+
 
 <!-- ================ -->
 <!-- = SPECIAL TAGS = -->