[library-web] add possibility of extracss to mallard docs



commit c62651eb155daef5e71142a6166d394151bfda12
Author: Frédéric Péters <fpeters 0d be>
Date:   Sat Apr 20 13:30:29 2013 +0200

    add possibility of extracss to mallard docs

 data/xslt/mal2html.xsl | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/data/xslt/mal2html.xsl b/data/xslt/mal2html.xsl
index 4cb860f..591bd03 100644
--- a/data/xslt/mal2html.xsl
+++ b/data/xslt/mal2html.xsl
@@ -40,6 +40,8 @@ along with libgo; if not, write to the Free Software Foundation, Inc.,
 
 <xsl:param name="mal.cache" select="document($mal.cache.file, /)/mal:cache"/>
 
+<xsl:param name="libgo.extracss"/>
+
 <!-- output -->
 <xsl:output method="html" encoding="UTF-8" indent="yes"
         omit-xml-declaration="yes"
@@ -101,6 +103,9 @@ along with libgo; if not, write to the Free Software Foundation, Inc.,
       <xsl:call-template name="libgo.head"/>
       <script type="text/javascript" src="/js/jquery.js" />
       <link rel="stylesheet" type="text/css" href="/skin/mallard.css"/>
+      <xsl:if test="$libgo.extracss">
+        <link rel="stylesheet" href="/skin/{$libgo.extracss}" type="text/css" />
+      </xsl:if>
       <script type="text/javascript" language="javascript">
       <xsl:call-template name="html.js.content"/>
       <xsl:call-template name="mal2html.facets.js"/>


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