2 runs in creating pdf
[librarian.git] / librarian / epub / xsltAnnotations.xsl
index f3e6443..11ca655 100644 (file)
@@ -1,5 +1,5 @@
 <?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" />
     </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>