fnp
/
librarian.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
2c3ff56
)
add link tag
author
Jan Szejko
<janek37@gmail.com>
Wed, 21 Nov 2018 11:51:57 +0000
(12:51 +0100)
committer
Jan Szejko
<janek37@gmail.com>
Wed, 21 Nov 2018 11:51:57 +0000
(12:51 +0100)
librarian/epub/xsltScheme.xsl
patch
|
blob
|
history
librarian/fb2/inline.xslt
patch
|
blob
|
history
librarian/pdf/wl2tex.xslt
patch
|
blob
|
history
librarian/xslt/book2html.xslt
patch
|
blob
|
history
diff --git
a/librarian/epub/xsltScheme.xsl
b/librarian/epub/xsltScheme.xsl
index
73faf5d
..
517a1c6
100644
(file)
--- a/
librarian/epub/xsltScheme.xsl
+++ b/
librarian/epub/xsltScheme.xsl
@@
-286,6
+286,13
@@
</li>
</xsl:template>
</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 -->
<!--===========================================================-->
<!--===========================================================-->
<!-- Tagi STANDALONE -->
<!--===========================================================-->
diff --git
a/librarian/fb2/inline.xslt
b/librarian/fb2/inline.xslt
index
03c6b65
..
7e6f4e3
100644
(file)
--- a/
librarian/fb2/inline.xslt
+++ b/
librarian/fb2/inline.xslt
@@
-34,6
+34,12
@@
<xsl:apply-templates mode="inline"/>
</strong>
</xsl:template>
<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">
<!-- text -->
<xsl:template match="text()" mode="inline">
diff --git
a/librarian/pdf/wl2tex.xslt
b/librarian/pdf/wl2tex.xslt
index
b69f11d
..
678d09f
100644
(file)
--- a/
librarian/pdf/wl2tex.xslt
+++ b/
librarian/pdf/wl2tex.xslt
@@
-401,6
+401,13
@@
</cmd>
</xsl:template>
</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">
<xsl:template match="tytul_dziela" mode="inline">
diff --git
a/librarian/xslt/book2html.xslt
b/librarian/xslt/book2html.xslt
index
778202e
..
91118fa
100644
(file)
--- a/
librarian/xslt/book2html.xslt
+++ b/
librarian/xslt/book2html.xslt
@@
-705,6
+705,15
@@
</a>
</xsl:template>
</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) = -->
<!-- ============================================== -->
<!-- = STANDALONE TAGS = -->
<!-- = (cannot contain any other tags) = -->