summaryrefslogtreecommitdiff
path: root/stylesheets
diff options
context:
space:
mode:
authorRupert Swarbrick <rswarbrick@gmail.com>2010-09-03 00:09:31 +0100
committerShaun McCance <shaunm@gnome.org>2010-09-15 10:52:24 -0400
commit40dd6b0aeff37fef0584a4fdc03b71530dfea562 (patch)
treea12299f3cb0201f256c607fc97f7a4ce11c0dc98 /stylesheets
parent413493e93f4826df3c28f2891505f0ef81b1c9b1 (diff)
downloadyelp-40dd6b0aeff37fef0584a4fdc03b71530dfea562.tar.gz
Display menus as <ul>'s, rather than the original text.
Diffstat (limited to 'stylesheets')
-rw-r--r--stylesheets/info2html.xsl.in24
1 files changed, 19 insertions, 5 deletions
diff --git a/stylesheets/info2html.xsl.in b/stylesheets/info2html.xsl.in
index c029148f..1117a80f 100644
--- a/stylesheets/info2html.xsl.in
+++ b/stylesheets/info2html.xsl.in
@@ -47,7 +47,8 @@
<xsl:param name="left"/>
<xsl:param name="right"/>
<xsl:text>
-div.body { white-space: pre; font-family: monospace; }
+div.body { font-family: monospace; }
+span.fixed { white-space: pre; }
<!-- navbar from mal2html, possibly move to html.xsl -->
div.navbar {
margin: 0 0 1em 0;
@@ -106,13 +107,17 @@ a.navbar-next::after {
<!-- = Normal Matches = -->
<xsl:template match="para">
- <xsl:value-of select="node()"/>
- <xsl:text>
+ <span class="fixed">
+ <xsl:value-of select="node()"/>
+ <xsl:text>
</xsl:text>
+ </span>
</xsl:template>
<xsl:template match="para1">
- <xsl:value-of select="node()"/>
+ <span class="fixed">
+ <xsl:value-of select="node()"/>
+ </span>
</xsl:template>
<xsl:template match="header">
@@ -156,8 +161,17 @@ a.navbar-next::after {
</xsl:element>
</xsl:template>
+<xsl:template match="menu">
+ <xsl:element name="p">Menu:</xsl:element>
+ <xsl:element name="ul">
+ <xsl:apply-templates />
+ </xsl:element>
+</xsl:template>
+
<xsl:template match="menuholder">
- <xsl:apply-templates select="node()[not(self::menuholder)]"/>
+ <xsl:element name="li">
+ <xsl:apply-templates />
+ </xsl:element>
</xsl:template>
<xsl:template match="noteholder">