fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed path for importing books.
[wolnelektury.git]
/
lib
/
librarian
/
book2html.xslt
diff --git
a/lib/librarian/book2html.xslt
b/lib/librarian/book2html.xslt
index
bd1b8bb
..
827c696
100644
(file)
--- a/
lib/librarian/book2html.xslt
+++ b/
lib/librarian/book2html.xslt
@@
-1,7
+1,7
@@
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:wl="http://wolnelektury.pl/functions" >
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:wl="http://wolnelektury.pl/functions" >
-<xsl:output
method="xml"
encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.1//EN" doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" indent="yes" />
+<xsl:output encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.1//EN" doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" indent="yes" />
<xsl:template match="utwor">
<xsl:template match="utwor">
@@
-169,7
+169,7
@@
<xsl:template name="verse">
<xsl:param name="line-content" />
<xsl:param name="line-number" />
<xsl:template name="verse">
<xsl:param name="line-content" />
<xsl:param name="line-number" />
- <p>
+ <p
class="verse"
>
<xsl:choose>
<xsl:when test="name($line-content) = 'wers_akap'">
<xsl:attribute name="style">padding-left: 1em</xsl:attribute>
<xsl:choose>
<xsl:when test="name($line-content) = 'wers_akap'">
<xsl:attribute name="style">padding-left: 1em</xsl:attribute>
@@
-212,7
+212,7
@@
<xsl:template match="tytul_dziela" mode="inline">
<em class="book-title">
<xsl:template match="tytul_dziela" mode="inline">
<em class="book-title">
- <xsl:if test="
./@typ = '1'">„</xsl:if><xsl:apply-templates mode="inline" /><xsl:if test="./@typ = '1
">”</xsl:if>
+ <xsl:if test="
@typ = '1'">„</xsl:if><xsl:apply-templates mode="inline" /><xsl:if test="@typ = '1'
">”</xsl:if>
</em>
</xsl:template>
</em>
</xsl:template>
@@
-233,6
+233,14
@@
<hr class="spacer" />
</xsl:template>
<hr class="spacer" />
</xsl:template>
+<xsl:template match="sekcja_asterysk">
+ <p class="spacer-asterisk">*</p>
+</xsl:template>
+
+<xsl:template match="separator_linia">
+ <hr class="spacer-line" />
+</xsl:template>
+
<!-- ================ -->
<!-- = SPECIAL TAGS = -->
<!-- ================ -->
<!-- = SPECIAL TAGS = -->
@@
-240,9
+248,9
@@
<!-- Themes -->
<xsl:template match="begin" mode="inline">
<xsl:variable name="mnum" select="concat('m', substring(@id, 2))" />
<!-- Themes -->
<xsl:template match="begin" mode="inline">
<xsl:variable name="mnum" select="concat('m', substring(@id, 2))" />
- <
span
class="theme-begin" fid="{substring(@id, 2)}">
+ <
a name="m{substring(@id, 2)}"
class="theme-begin" fid="{substring(@id, 2)}">
<xsl:value-of select="string(following::motyw[@id=$mnum]/text())" />
<xsl:value-of select="string(following::motyw[@id=$mnum]/text())" />
- </
span
>
+ </
a
>
</xsl:template>
<xsl:template match="end" mode="inline">
</xsl:template>
<xsl:template match="end" mode="inline">