numeracja in epub
[librarian.git] / src / librarian / xslt / book2html.xslt
index 54f522e..ba9dbb4 100644 (file)
                                 </p>
                             </xsl:when>
                             <xsl:otherwise>
                                 </p>
                             </xsl:when>
                             <xsl:otherwise>
-                                <xsl:apply-templates select="text()|*" mode="inline" />
+                              <xsl:apply-templates />
+                              <p>
+                                <xsl:if test="name()='pa'"> [przypis autorski]</xsl:if>
+                                <xsl:if test="name()='pt'"> [przypis tĹ‚umacza]</xsl:if>
+                                <xsl:if test="name()='pr'"> [przypis redakcyjny]</xsl:if>
+                                <xsl:if test="name()='pe'"> [przypis edytorski]</xsl:if>
+                              </p>
                             </xsl:otherwise>
                         </xsl:choose>
                     </div>
                             </xsl:otherwise>
                         </xsl:choose>
                     </div>
         <a name="{concat('sec', count(ancestor-or-self::*[last()-2]/preceding-sibling::*) + 1)}" />
 </xsl:template>
 
         <a name="{concat('sec', count(ancestor-or-self::*[last()-2]/preceding-sibling::*) + 1)}" />
 </xsl:template>
 
+<xsl:template match="numeracja">
+       <span class="numeracja">
+               <xsl:attribute name="data-start">
+                       <xsl:value-of select="@start" />
+               </xsl:attribute>
+       </span>
+</xsl:template>
+
 </xsl:stylesheet>
 </xsl:stylesheet>