Verse counters.
[librarian.git] / src / librarian / epub / xsltScheme.xsl
index 724d983..0fae871 100644 (file)
@@ -1,17 +1,13 @@
 <?xml version="1.0" encoding="utf-8"?>
 <xsl:stylesheet version="1.0"  xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:wl="http://wolnelektury.pl/functions" exclude-result-prefixes="mml wl">
   <xsl:output method="html" version="1.0" encoding="utf-8" />
 <?xml version="1.0" encoding="utf-8"?>
 <xsl:stylesheet version="1.0"  xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:wl="http://wolnelektury.pl/functions" exclude-result-prefixes="mml wl">
   <xsl:output method="html" version="1.0" encoding="utf-8" />
-  <xsl:output doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" />
-  <xsl:output doctype-public="-//W3C//DTD XHTML 1.1//EN" />
 
   <xsl:template match="/" >
     <xsl:element name="html" xmlns="http://www.w3.org/1999/xhtml">
       <xsl:element name="head">
         <link rel="stylesheet" href="style.css" type="text/css" />
 
   <xsl:template match="/" >
     <xsl:element name="html" xmlns="http://www.w3.org/1999/xhtml">
       <xsl:element name="head">
         <link rel="stylesheet" href="style.css" type="text/css" />
-        <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
-        <title>
-          WolneLektury.pl
-        </title>
+        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+        <title>WolneLektury.pl</title>
       </xsl:element>
       <xsl:element name="body" xmlns="http://www.w3.org/1999/xhtml">
         <xsl:element name="div" xmlns="http://www.w3.org/1999/xhtml">
       </xsl:element>
       <xsl:element name="body" xmlns="http://www.w3.org/1999/xhtml">
         <xsl:element name="div" xmlns="http://www.w3.org/1999/xhtml">
 
   <xsl:template match="ilustr">
     <img>
 
   <xsl:template match="ilustr">
     <img>
-      <xsl:attribute name="src">
-        <xsl:value-of select="@src" />
-      </xsl:attribute>
       <xsl:attribute name="alt">
         <xsl:value-of select="@alt" />
       </xsl:attribute>
       <xsl:attribute name="alt">
         <xsl:value-of select="@alt" />
       </xsl:attribute>
+      <xsl:attribute name="src">
+        <xsl:value-of select="@src" />
+      </xsl:attribute>
       <xsl:attribute name="title">
         <xsl:value-of select="@alt" />
       </xsl:attribute>
       <xsl:attribute name="title">
         <xsl:value-of select="@alt" />
       </xsl:attribute>
   <xsl:template match="extra" />
 
   <xsl:template match="pe|pa|pr|pt" >
   <xsl:template match="extra" />
 
   <xsl:template match="pe|pa|pr|pt" >
-    <a class="anchor" id="anchor-{.}" href="annotations.html#annotation-{.}"
+    <a class="anchor" href="annotations.xhtml#annotation-{.}" id="anchor-{.}"
        xmlns="http://www.w3.org/1999/xhtml"><sup xmlns="http://www.w3.org/1999/xhtml"><xsl:apply-templates /></sup></a>
   </xsl:template>
 
        xmlns="http://www.w3.org/1999/xhtml"><sup xmlns="http://www.w3.org/1999/xhtml"><xsl:apply-templates /></sup></a>
   </xsl:template>