diff options
author | pknbe <pknbe> | 2009-09-24 01:05:11 +0000 |
---|---|---|
committer | pknbe <pknbe> | 2009-09-24 01:05:11 +0000 |
commit | 799d094832f1afcc2c1ba203a2141f7b4fff6900 (patch) | |
tree | ef8dc98765ac0fef7285376a9bde6b00f366b4bf | |
parent | 17741c2de5a1e240a8e4b7fcfb834cfd08f9c9a6 (diff) | |
download | sylpheeddoc-doc-799d094832f1afcc2c1ba203a2141f7b4fff6900.tar.gz sylpheeddoc-doc-799d094832f1afcc2c1ba203a2141f7b4fff6900.tar.xz sylpheeddoc-doc-799d094832f1afcc2c1ba203a2141f7b4fff6900.zip |
Makefile: Add single-page stylesheet for FAQ.
tools/faq.xsl: Ditto.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Makefile | 8 | ||||
-rw-r--r-- | tools/faq.xsl | 81 |
3 files changed, 91 insertions, 3 deletions
@@ -1,3 +1,8 @@ +2009-09-24 Petr Kovar <pknbe@volny.cz> + + * Makefile: Add single-page stylesheet for FAQ. + * tools/faq.xsl: Ditto. + 2009-09-18 Petr Kovar <pknbe@volny.cz> * tools/faq.css: Add formatting for 'pre' elements. @@ -31,12 +31,13 @@ ###################################################################### # # $Log: Makefile,v $ +# Revision 1.7 2009/09/24 01:05:11 pknbe +# Makefile: Add single-page stylesheet for FAQ. +# tools/faq.xsl: Ditto. +# # Revision 1.6 2009/08/12 19:37:33 pknbe # Makefile: Add the 'faq_chunks.xsl' stylesheet. tools/faq_chunks.xsl: Add chunk stylesheet for FAQ. # -# Revision 1.6 2009/08/12 17:25:00 pknbe -# Added the 'faq_chunks.xsl' stylesheet -# # Revision 1.5 2005/06/21 20:29:32 fbarriere # Changed the Makefile to the new DocBook version of the doc # @@ -135,6 +136,7 @@ CHUNKS_STYLESHEET := $(ROOT_DIR)/tools/user_guide_chunks.xsl SINGLE_STYLESHEET := $(ROOT_DIR)/tools/user_guide.xsl FO_PDF_STYLESHEET := $(ROOT_DIR)/tools/user_guide_fo.xsl FAQ_CHUNKS_STYLESHEET := $(ROOT_DIR)/tools/faq_chunks.xsl +FAQ_SINGLE_STYLESHEET := $(ROOT_DIR)/tools/faq.xsl HTML_STYLESHEET := sylpheeddoc.css # diff --git a/tools/faq.xsl b/tools/faq.xsl new file mode 100644 index 0000000..2680f76 --- /dev/null +++ b/tools/faq.xsl @@ -0,0 +1,81 @@ +<?xml version='1.0'?> +<!DOCTYPE xsl:stylesheet [ +<!ENTITY css SYSTEM "faq.css"> +]> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + version='1.0'> + +<!-- Import original style sheet: chunk.xsl (multi-page) or docbook.xsl (one page) --> + + <xsl:import href="/usr/share/sgml/docbook/xsl-stylesheets/html/docbook.xsl"/> + +<!-- ****************************************************************** + - + - Load the common customization for HTML: + - + - ****************************************************************** + --> + + <xsl:include href="user_guide_common.xsl"/> + <!-- xsl:include href="faq_common.xsl"/ --> + + <xsl:param name="page.margin.top">10in</xsl:param> + <xsl:param name="page.margin.bottom">10in</xsl:param> + <xsl:param name="page.margin.inner">10in</xsl:param> + <xsl:param name="page.margin.outer">10in</xsl:param> + + <xsl:param name="generate.legalnotice.link" select="0"/> + +<!-- ****************************************************************** + - + - Customization starts here: + - + - ****************************************************************** + --> + +<!-- + - Do not use the chunker in this version: + --> + +<xsl:param name="using.chunker" select="0"/> + +<!-- Auto label qandadiv --> + +<xsl:param name="qandadiv.autolabel" select="1"></xsl:param> + +<!-- Add CSS stylesheet content to the HTML header --> + +<xsl:template name="user.head.content"> +<style type="text/css"> +&css; +</style> +</xsl:template> + +<!-- Nice HTML output --> + +<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> |