add link tag
authorJan Szejko <janek37@gmail.com>
Wed, 21 Nov 2018 11:51:57 +0000 (12:51 +0100)
committerJan Szejko <janek37@gmail.com>
Wed, 21 Nov 2018 11:51:57 +0000 (12:51 +0100)
librarian/epub/xsltScheme.xsl
librarian/fb2/inline.xslt
librarian/pdf/wl2tex.xslt
librarian/xslt/book2html.xslt

index 73faf5d..517a1c6 100644 (file)
     </li>
   </xsl:template>
 
+  <xsl:template match="link" >
+    <a>
+      <xsl:attribute name="href"><xsl:value-of select="@src"/></xsl:attribute>
+      <xsl:apply-templates />
+    </a>
+  </xsl:template>
+
   <!--===========================================================-->
   <!-- Tagi STANDALONE -->
   <!--===========================================================-->
index 03c6b65..7e6f4e3 100644 (file)
                        <xsl:apply-templates mode="inline"/>
                </strong>
        </xsl:template>
+       <xsl:template match="link" >
+               <a l:type="simple">
+                       <xsl:attribute name="l:href"><xsl:value-of select="@src"/></xsl:attribute>
+                       <xsl:apply-templates />
+               </a>
+       </xsl:template>
 
        <!-- text -->
        <xsl:template match="text()" mode="inline">
index b69f11d..678d09f 100644 (file)
     </cmd>
 </xsl:template>
 
+<xsl:template match="link" mode="inline">
+    <cmd name="href">
+        <parm><xsl:value-of select="wl:urlquote(@url)" /></parm>
+        <parm><xsl:apply-templates mode="inline"/></parm>
+    </cmd>
+</xsl:template>
+
 
 
 <xsl:template match="tytul_dziela" mode="inline">
index 778202e..91118fa 100644 (file)
     </a>
 </xsl:template>
 
+<xsl:template match="link" mode="inline">
+    <a>
+        <xsl:attribute name="href">
+            <xsl:value-of select="@url"/>
+        </xsl:attribute>
+        <xsl:value-of select="text()"/>
+    </a>
+</xsl:template>
+
 <!-- ============================================== -->
 <!-- = STANDALONE TAGS                            = -->
 <!-- = (cannot contain any other tags)            = -->