minor style fixes to EPUBs
[librarian.git] / librarian / epub / xsltScheme.xsl
index 4060d62..7ec1f8b 100644 (file)
     </xsl:if>
   </xsl:template>
 
+  <xsl:template match="nota_red">
+      <div class="note_red" xmlns="http://www.w3.org/1999/xhtml">
+       <xsl:apply-templates />
+      </div>
+  </xsl:template>
+
+
   <xsl:template match="lista_osob" >
     <div class="person-list" xmlns="http://www.w3.org/1999/xhtml">
       <div class="h3" xmlns="http://www.w3.org/1999/xhtml">
 
   <xsl:template match="podtytul" />
 
-  <xsl:template match="naglowek_czesc|srodtytul">
+  <xsl:template match="naglowek_czesc">
     <h2 class="h2" xmlns="http://www.w3.org/1999/xhtml">
       <xsl:apply-templates />
     </h2>
     </h2>
   </xsl:template>
 
-  <xsl:template match="naglowek_podpodrozdzial">
+  <xsl:template match="naglowek_podpodrozdzial|srodtytul">
     <a xmlns="http://www.w3.org/1999/xhtml"></a>
     <div class="p" xmlns="http://www.w3.org/1999/xhtml">
       <xsl:apply-templates />
 
   <xsl:template match="uwaga" />
 
-  <xsl:template match="nota_red" />
 
   <!--pominiÄ™cie tych metadanych-->
   <xsl:template match="rdf:RDF" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" />
     <img>
       <xsl:attribute name="src"><xsl:value-of select="@src"/>.<xsl:choose><xsl:when test="@extbitmap"><xsl:value-of select="@extbitmap"/></xsl:when><xsl:otherwise><xsl:value-of select="@ext"/></xsl:otherwise></xsl:choose></xsl:attribute>
     </img>
+    <xsl:apply-templates />
+  </xsl:template>
+
+  <xsl:template match="img">
+    <img rel="math formula">
+      <xsl:attribute name="src">
+       <xsl:value-of select="text()"/>
+      </xsl:attribute>
+      <xsl:attribute name="class">latex</xsl:attribute>
+    </img>
+  </xsl:template>
+
+  <xsl:template match="wyimek_extra">
   </xsl:template>
-  
 
 </xsl:stylesheet>