summaryrefslogtreecommitdiffstats
path: root/winsup/doc/html.xsl
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2015-06-16 18:15:20 +0100
committerJon TURNEY <jon.turney@dronecode.org.uk>2015-06-18 11:31:57 +0100
commit73afd1315cbf8eae72f02ca12e417de2f274a578 (patch)
treec554d3abd4767d6676cff38558a6e3e9a8b39572 /winsup/doc/html.xsl
parente4bdbca6ebf090e5d22803298356e31b3133a060 (diff)
downloadcygnal-73afd1315cbf8eae72f02ca12e417de2f274a578.tar.gz
cygnal-73afd1315cbf8eae72f02ca12e417de2f274a578.tar.bz2
cygnal-73afd1315cbf8eae72f02ca12e417de2f274a578.zip
winsup/doc: Rename cygwin.xsl as html.xsl
For clarity, rename cygwin.xsl as html.xsl, because that's what it is 2015-06-17 Jon Turney <jon.turney@dronecode.org.uk> * html.xsl: Renamed from cygwin.xsl. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Diffstat (limited to 'winsup/doc/html.xsl')
-rw-r--r--winsup/doc/html.xsl26
1 files changed, 26 insertions, 0 deletions
diff --git a/winsup/doc/html.xsl b/winsup/doc/html.xsl
new file mode 100644
index 000000000..2b02ea870
--- /dev/null
+++ b/winsup/doc/html.xsl
@@ -0,0 +1,26 @@
+<?xml version='1.0'?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ version='1.0'>
+
+<xsl:param name="chunker.output.doctype-public"
+ select="'-//W3C//DTD HTML 4.01 Transitional//EN'" />
+<xsl:param name="html.stylesheet" select="'docbook.css'"/>
+<xsl:param name="use.id.as.filename" select="1" />
+<xsl:param name="root.filename" select="@id" />
+<xsl:param name="toc.section.depth" select="4" />
+
+<!-- autotoc.xsl customization to make refentry in sect1 appear in toc -->
+<xsl:template match="sect1" mode="toc">
+ <xsl:param name="toc-context" select="."/>
+ <xsl:call-template name="subtoc">
+ <xsl:with-param name="toc-context" select="$toc-context"/>
+ <xsl:with-param name="nodes" select="sect2|refentry
+ |bridgehead[$bridgehead.in.toc != 0]"/>
+ </xsl:call-template>
+</xsl:template>
+
+<!-- suppress refentry in toc being annotated with refpurpose -->
+<xsl:param name="annotate.toc" select="0" />
+
+</xsl:stylesheet>