summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorpknbe <pknbe>2009-09-18 02:25:20 +0000
committerpknbe <pknbe>2009-09-18 02:25:20 +0000
commit32dd62f4201c560a77f3cfc91c346d84c7a59627 (patch)
treec3217b19676825a3f745c944f986f6c0dc75ace2 /tools
parentb8edf3f72ac263e7fe591f78954953a5cc7b6163 (diff)
downloadsylpheeddoc-doc-32dd62f4201c560a77f3cfc91c346d84c7a59627.zip
sylpheeddoc-doc-32dd62f4201c560a77f3cfc91c346d84c7a59627.tar.gz
sylpheeddoc-doc-32dd62f4201c560a77f3cfc91c346d84c7a59627.tar.xz
tools/faq.css: Add formatting for 'pre' elements.
tools/faq_chunks.xsl: Just list the chapter titles in the book ToC. tools/user_guide_common.xsl: Transfer in HTML deprecated verbatim formatting. tools/user_guide_fo.xsl: Ditto.
Diffstat (limited to 'tools')
-rw-r--r--tools/faq.css8
-rw-r--r--tools/faq_chunks.xsl25
-rwxr-xr-xtools/user_guide_common.xsl5
-rwxr-xr-xtools/user_guide_fo.xsl5
4 files changed, 35 insertions, 8 deletions
diff --git a/tools/faq.css b/tools/faq.css
index 18932d0..3b71b1e 100644
--- a/tools/faq.css
+++ b/tools/faq.css
@@ -1 +1,7 @@
-.question {font-size: 16px; font-weight: bold}
+pre.programlisting, pre.screen {
+background-color : #e0e0e0;
+padding : 0.2cm;
+}
+.question {
+font-weight : bold;
+}
diff --git a/tools/faq_chunks.xsl b/tools/faq_chunks.xsl
index 05b1cff..a54a3d2 100644
--- a/tools/faq_chunks.xsl
+++ b/tools/faq_chunks.xsl
@@ -17,8 +17,6 @@
-->
<xsl:include href="user_guide_common.xsl"/>
- <!-- xsl:include href="faq_common.xsl"/ -->
- <!-- xsl:include href="html_titlepage.xsl"/ -->
<xsl:param name="page.margin.top">10in</xsl:param>
<xsl:param name="page.margin.bottom">10in</xsl:param>
@@ -92,4 +90,27 @@
<xsl:param name="chunker.output.indent">yes</xsl:param>
+<!-- Just list the chapter titles in the book ToC -->
+
+<xsl:template match="preface|chapter|appendix|article" mode="toc">
+ <xsl:param name="toc-context" select="."/>
+
+ <xsl:choose>
+ <xsl:when test="local-name($toc-context) = 'book'">
+ <xsl:call-template name="subtoc">
+ <xsl:with-param name="toc-context" select="$toc-context"/>
+ <xsl:with-param name="nodes" select="foo"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="subtoc">
+ <xsl:with-param name="toc-context" select="$toc-context"/>
+ <xsl:with-param name="nodes"
+ select="section|sect1|glossary|bibliography|index
+ |bridgehead[$bridgehead.in.toc != 0]"/>
+ </xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+</xsl:template>
+
</xsl:stylesheet>
diff --git a/tools/user_guide_common.xsl b/tools/user_guide_common.xsl
index 1f6e12b..a55b486 100755
--- a/tools/user_guide_common.xsl
+++ b/tools/user_guide_common.xsl
@@ -207,11 +207,6 @@
<xsl:attribute name="text-align">left</xsl:attribute>
</xsl:attribute-set>
-<xsl:param name="shade.verbatim">1</xsl:param>
-<xsl:attribute-set name="shade.verbatim.style">
- <xsl:attribute name="background-color">#E0E0E0</xsl:attribute>
-</xsl:attribute-set>
-
<!-- blockquote rendering: -->
<xsl:attribute-set name="blockquote.properties">
diff --git a/tools/user_guide_fo.xsl b/tools/user_guide_fo.xsl
index 0742e78..e48f887 100755
--- a/tools/user_guide_fo.xsl
+++ b/tools/user_guide_fo.xsl
@@ -121,4 +121,9 @@
</xsl:attribute>
</xsl:attribute-set>
+<xsl:param name="shade.verbatim">1</xsl:param>
+<xsl:attribute-set name="shade.verbatim.style">
+ <xsl:attribute name="background-color">#E0E0E0</xsl:attribute>
+</xsl:attribute-set>
+
</xsl:stylesheet>