summaryrefslogtreecommitdiff
path: root/xslt
diff options
context:
space:
mode:
authorShaun McCance <shaunm@gnome.org>2008-12-16 18:35:22 -0600
committerShaun McCance <shaunm@gnome.org>2009-04-19 11:13:32 -0500
commitcc377e18607365f3edbf045af57b99786181238d (patch)
tree6d0846e68f044e5f2763bab2600b9d10d00299b9 /xslt
parent71d44d934a03ddcff9084e4a6f63557baf9c43b9 (diff)
downloadgnome-doc-utils-cc377e18607365f3edbf045af57b99786181238d.tar.gz
Adding more content for inline elements
Diffstat (limited to 'xslt')
-rw-r--r--xslt/mallard/html/mal2html-inline.xsl45
1 files changed, 42 insertions, 3 deletions
diff --git a/xslt/mallard/html/mal2html-inline.xsl b/xslt/mallard/html/mal2html-inline.xsl
index 61beefc..644e441 100644
--- a/xslt/mallard/html/mal2html-inline.xsl
+++ b/xslt/mallard/html/mal2html-inline.xsl
@@ -106,9 +106,33 @@ span.code { font-family: monospace; }
span.em { font-style: italic; }
span.email { color: red; }
span.file { font-family: monospace; }
-span.gui { color: red; }
+span.gui, span.guiseq { color: </xsl:text>
+ <xsl:call-template name="theme.get_color">
+ <xsl:with-param name="id" select="'text-light'"/>
+ </xsl:call-template>
+ <xsl:text>;
+}
span.input { font-family: monospace; }
-span.key { /* FIXME */ }
+span.key {
+ color: </xsl:text>
+ <xsl:call-template name="theme.get_color">
+ <xsl:with-param name="id" select="'text-light'"/>
+ </xsl:call-template>
+ <xsl:text>;
+ border: solid 1px </xsl:text>
+ <xsl:call-template name="theme.get_color">
+ <xsl:with-param name="id" select="'gray-border'"/>
+ </xsl:call-template>
+ <xsl:text>;
+ padding: 0 0.2em 0 0.2em;
+}
+span.keyseq {
+ color: </xsl:text>
+ <xsl:call-template name="theme.get_color">
+ <xsl:with-param name="id" select="'text-light'"/>
+ </xsl:call-template>
+ <xsl:text>;
+}
span.output { font-family: monospace; }
span.sys { font-family: monospace; }
span.var { font-style: italic; }
@@ -155,10 +179,25 @@ span.var { font-style: italic; }
<!-- = gui = -->
<xsl:template mode="mal2html.inline.mode" match="mal:gui">
- <!-- FIXME: menu -->
<xsl:call-template name="mal2html.span"/>
</xsl:template>
+<!-- = guiseq = -->
+<xsl:template mode="mal2html.inline.mode" match="mal:guiseq">
+ <xsl:call-template name="mal2html.span"/>
+</xsl:template>
+
+<!-- = guiseq % mal2html.inline.content.mode = -->
+<xsl:template mode="mal2html.inline.content.mode" match="mal:guiseq">
+ <xsl:for-each select="mal:gui">
+ <xsl:if test="position() != 1">
+ <!-- FIXME: rtl -->
+ <xsl:text>&#x00A0;&#x25B8; </xsl:text>
+ </xsl:if>
+ <xsl:apply-templates mode="mal2html.inline.mode" select="."/>
+ </xsl:for-each>
+</xsl:template>
+
<!-- = input = -->
<xsl:template mode="mal2html.inline.mode" match="mal:input">
<xsl:call-template name="mal2html.span"/>