hack to prevent self-closing <a> tags
authorJan Szejko <janek37@gmail.com>
Mon, 5 Mar 2018 10:26:54 +0000 (11:26 +0100)
committerJan Szejko <janek37@gmail.com>
Mon, 5 Mar 2018 10:26:54 +0000 (11:26 +0100)
librarian/epub/xsltScheme.xsl

index 4031949..e67cda7 100644 (file)
   </xsl:template>
 
   <xsl:template match="naglowek_scena">
-    <a id="sub{@sub}" xmlns="http://www.w3.org/1999/xhtml"></a>
+    <a id="sub{@sub}" xmlns="http://www.w3.org/1999/xhtml"><xsl:comment/><!-- hack to keep closing tags --></a>
     <h2 class="h3" xmlns="http://www.w3.org/1999/xhtml">
       <xsl:apply-templates />
     </h2>
   </xsl:template>
 
   <xsl:template match="naglowek_podrozdzial">
-    <a id="sub{@sub}" xmlns="http://www.w3.org/1999/xhtml"></a>
+    <a id="sub{@sub}" xmlns="http://www.w3.org/1999/xhtml"><xsl:comment/><!-- same as above --></a>
     <h2 class="h4" xmlns="http://www.w3.org/1999/xhtml">
       <xsl:apply-templates />
     </h2>