[gnome-doc-utils] [mal2html] Added hi element from Mallard experimental



commit 58e329fe9c336c7644b4c850c2aeae0fb446c57d
Author: Shaun McCance <shaunm gnome org>
Date:   Tue Jun 16 16:09:15 2009 -0500

    [mal2html] Added hi element from Mallard experimental

 xslt/mallard/html/mal2html-inline.xsl |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/xslt/mallard/html/mal2html-inline.xsl b/xslt/mallard/html/mal2html-inline.xsl
index 969f0c6..1db0bf2 100644
--- a/xslt/mallard/html/mal2html-inline.xsl
+++ b/xslt/mallard/html/mal2html-inline.xsl
@@ -18,6 +18,7 @@ Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
                 xmlns:mal="http://projectmallard.org/1.0/";
+                xmlns:e="http://projectmallard.org/experimental/";
                 xmlns="http://www.w3.org/1999/xhtml";
                 version="1.0">
 
@@ -110,6 +111,10 @@ span.file { font-family: monospace; }
 span.gui, span.guiseq { color: </xsl:text>
   <xsl:value-of select="$theme.color.text_light"/><xsl:text>; }
 span.input { font-family: monospace; }
+span.hi {
+  background-color: </xsl:text>
+    <xsl:value-of select="$theme.color.yellow_background"/><xsl:text>;
+}
 span.key {
   color: </xsl:text>
     <xsl:value-of select="$theme.color.text_light"/><xsl:text>;
@@ -200,6 +205,11 @@ span.var { font-style: italic; }
   <xsl:call-template name="mal2html.span"/>
 </xsl:template>
 
+<!-- = hi = -->
+<xsl:template mode="mal2html.inline.mode" match="e:hi">
+  <xsl:call-template name="mal2html.span"/>
+</xsl:template>
+
 <!-- = key = -->
 <xsl:template mode="mal2html.inline.mode" match="mal:key">
   <xsl:call-template name="mal2html.span"/>



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