[yelp-tools] mal-epub.xsl: More book-like rendering



commit 842b163d40bc29b548abc704082f3dd803de43d1
Author: Shaun McCance <shaunm gnome org>
Date:   Sun May 15 20:02:46 2011 -0400

    mal-epub.xsl: More book-like rendering

 xslt/mal-epub.xsl |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/xslt/mal-epub.xsl b/xslt/mal-epub.xsl
index 2a585bb..8af9863 100644
--- a/xslt/mal-epub.xsl
+++ b/xslt/mal-epub.xsl
@@ -4,4 +4,15 @@
     exclude-result-prefixes="mal"
     version="1.0">
 
+<xsl:template mode="html.header.mode" match="mal:page"/>
+<xsl:template mode="html.footer.mode" match="mal:page"/>
+
+<xsl:template mode="html.css.mode" match="mal:page">
+<xsl:text>
+body { background-color: </xsl:text><xsl:value-of select="$color.background"/><xsl:text>; }
+div.body { border: none; }
+</xsl:text>
+<xsl:apply-imports/>
+</xsl:template>
+
 </xsl:stylesheet>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]