fix special chars in link url
[librarian.git] / librarian / fb2 / inline.xslt
index 221fbfd..7e6f4e3 100644 (file)
        <xsl:template match="motyw" mode="inline"/>
 
        <!-- formatting -->
-       <xsl:template match="slowo_obce|tytul_dziela">
+       <xsl:template match="slowo_obce" mode="inline">
                <emphasis>
                        <xsl:apply-templates mode="inline"/>
                </emphasis>
        </xsl:template>
-       <xsl:template match="wyroznienie">
+       <xsl:template match="tytul_dziela" mode="inline">
+               <emphasis>
+            <xsl:if test="@typ">„</xsl:if>
+                       <xsl:apply-templates mode="inline"/>
+            <xsl:if test="@typ">”</xsl:if>
+               </emphasis>
+       </xsl:template>
+       <xsl:template match="wyroznienie" mode="inline">
                <strong>
                        <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">