more rights flexibility
[librarian.git] / librarian / xslt / book2html.xslt
index 8e1a574..441f641 100755 (executable)
@@ -15,7 +15,7 @@
         <xsl:when test="@full-page">
             <html>
             <head>
         <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>
                 <meta http-equiv="content-type" content="text/html;charset=utf-8"/>
             </head>
             <style>
@@ -45,6 +45,7 @@
 
                 img {
                     border: none;
 
                 img {
                     border: none;
+                    max-width: 100%;
                 }
 
 
                 }
 
 
     <hr class="spacer-line" />
 </xsl:template>
 
     <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 = -->
 
 <!-- ================ -->
 <!-- = SPECIAL TAGS = -->