fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reports style
[librarian.git]
/
librarian
/
epub
/
xsltAnnotations.xsl
diff --git
a/librarian/epub/xsltAnnotations.xsl
b/librarian/epub/xsltAnnotations.xsl
index
2d05f1c
..
11ca655
100644
(file)
--- a/
librarian/epub/xsltAnnotations.xsl
+++ b/
librarian/epub/xsltAnnotations.xsl
@@
-1,5
+1,5
@@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.w3.org/1999/xhtml"
>
<xsl:output method="html" version="1.0" encoding="utf-8" />
<xsl:output doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" />
<xsl:output doctype-public="-//W3C//DTD XHTML 1.1//EN" />
<xsl:output method="html" version="1.0" encoding="utf-8" />
<xsl:output doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" />
<xsl:output doctype-public="-//W3C//DTD XHTML 1.1//EN" />
@@
-27,16
+27,16
@@
</xsl:template>
<xsl:template match="text()" >
</xsl:template>
<xsl:template match="text()" >
- <xsl:value-of select="."
disable-output-escaping="yes"
/>
+ <xsl:value-of select="." />
</xsl:template>
<xsl:template match="pa|pe|pr|pt" mode="przypis">
</xsl:template>
<xsl:template match="pa|pe|pr|pt" mode="przypis">
- <div xmlns="http://www.w3.org/1999/xhtml">
+ <div xmlns="http://www.w3.org/1999/xhtml"
class="annotation"
>
<p id="annotation-{@number}" xmlns="http://www.w3.org/1999/xhtml"></p>
<p id="annotation-{@number}" xmlns="http://www.w3.org/1999/xhtml"></p>
- <a class="annotation" href="part{@part}.html#anchor-{@number}" xmlns="http://www.w3.org/1999/xhtml">
+ <a class="annotation
-anchor
" href="part{@part}.html#anchor-{@number}" xmlns="http://www.w3.org/1999/xhtml">
[<xsl:value-of select="@number" />]
</a>
[<xsl:value-of select="@number" />]
</a>
- <p xmlns="http://www.w3.org/1999/xhtml">
+ <p
class="annotation-body"
xmlns="http://www.w3.org/1999/xhtml">
<xsl:apply-templates />
<xsl:if test="name()='pa'"> [przypis autorski]</xsl:if>
</p>
<xsl:apply-templates />
<xsl:if test="name()='pa'"> [przypis autorski]</xsl:if>
</p>
@@
-75,4
+75,14
@@
</p>
</xsl:template>
</p>
</xsl:template>
-</xsl:stylesheet>
\ No newline at end of file
+ <xsl:template match="img">
+ <img rel="math formula">
+ <xsl:attribute name="src">
+ <xsl:value-of select="text()"/>
+ </xsl:attribute>
+ <xsl:attribute name="class">latex</xsl:attribute>
+ </img>
+ </xsl:template>
+
+
+</xsl:stylesheet>