fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
for epubs, we zip all resources into OPS, not preserving tree structure — flattening...
[librarian.git]
/
librarian
/
epub
/
xsltAnnotations.xsl
diff --git
a/librarian/epub/xsltAnnotations.xsl
b/librarian/epub/xsltAnnotations.xsl
index
f3e6443
..
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" />
@@
-75,4
+75,14
@@
</p>
</xsl:template>
</p>
</xsl:template>
+ <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>
</xsl:stylesheet>