Merge branch 'master' into ofop
[librarian.git] / librarian / xslt / book2html.xslt
index 81e865b..f81f981 100755 (executable)
@@ -16,7 +16,7 @@
         <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>
@@ -46,6 +46,7 @@
 
                 img {
                     border: none;
+                    max-width: 100%;
                 }
 
 
     <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 = -->