summaryrefslogtreecommitdiffstats
path: root/DOCS/xml/html-common.xsl
diff options
context:
space:
mode:
authornicolas <nicolas@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-03-23 23:26:55 +0000
committernicolas <nicolas@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-03-23 23:26:55 +0000
commit5b1bd414021a75c10bcff405266df99f729a91da (patch)
treea9940552370353227a9549e04135f44dfb7b1b8e /DOCS/xml/html-common.xsl
parentd0def6c25585ce26c81f8ba5545d9489e3b67fbe (diff)
downloadmpv-5b1bd414021a75c10bcff405266df99f729a91da.tar.bz2
mpv-5b1bd414021a75c10bcff405266df99f729a91da.tar.xz
XML version of MPlayer's doc
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9675 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'DOCS/xml/html-common.xsl')
-rw-r--r--DOCS/xml/html-common.xsl87
1 files changed, 87 insertions, 0 deletions
diff --git a/DOCS/xml/html-common.xsl b/DOCS/xml/html-common.xsl
new file mode 100644
index 0000000000..296416bdaa
--- /dev/null
+++ b/DOCS/xml/html-common.xsl
@@ -0,0 +1,87 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0">
+
+<xsl:output method="html" indent="no"/>
+
+<!-- **************
+ Set parameters
+ ************** -->
+
+ <xsl:param name="toc.section.depth" select="'3'"/>
+
+ <xsl:param name="html.stylesheet" select="'default.css'"/>
+ <xsl:param name="html.stylesheet.type" select="'text/css'"/>
+
+ <xsl:param name="html.cleanup" select="'1'"/>
+ <xsl:param name="make.valid.html" select="'1'"/>
+ <xsl:param name="make.single.year.ranges" select="'1'"/>
+ <xsl:param name="make.year.ranges" select="'1'"/>
+
+ <!-- Use ID value for generated filenames -->
+ <xsl:param name="use.id.as.filename" select="'1'"/>
+
+ <!-- Depth to which sections are chunked -->
+ <xsl:param name="chunk.section.depth" select="'1'"/>
+
+ <!-- Create a chunk for the 1st top-level section too -->
+ <xsl:param name="chunk.first.sections" select="'1'"/>
+
+ <xsl:param name="admon.graphics" select="'0'"/>
+ <xsl:param name="navig.graphics" select="'0'"/>
+ <xsl:param name="navig.showtitles" select="'1'"/>
+
+ <!-- Label sections too (eg. 2.1, 2.1.1) -->
+ <xsl:param name="section.autolabel" select="'1'"/>
+ <xsl:param name="section.label.includes.component.label" select="'1'"/>
+
+ <!-- Use informal procedures; no need to number them -->
+ <xsl:param name="formal.procedures" select="'0'"/>
+
+ <xsl:param name="generate.toc">
+ appendix toc
+ article toc
+ book toc
+ chapter toc
+ part toc
+ preface toc
+ qandadiv toc
+ qandaset toc
+ reference toc
+ section toc
+ set toc
+ </xsl:param>
+
+<!-- *********
+ Templates
+ ********* -->
+
+ <xsl:template match="application">
+ <span class="application"><xsl:apply-templates/></span>
+ </xsl:template>
+
+ <xsl:template match="option">
+ <tt class="option"><xsl:apply-templates/></tt>
+ </xsl:template>
+
+ <xsl:template match="filename">
+ <tt class="filename"><xsl:apply-templates/></tt>
+ </xsl:template>
+
+ <xsl:template match="keycap">
+ <span class="keycap"><b><xsl:apply-templates/></b></span>
+ </xsl:template>
+
+ <xsl:template match="guimenu">
+ <span class="guimenu"><xsl:apply-templates/></span>
+ </xsl:template>
+
+ <xsl:template match="guisubmenu">
+ <span class="guisubmenu"><xsl:apply-templates/></span>
+ </xsl:template>
+
+ <xsl:template match="guimenuitem">
+ <span class="guimenuitem"><xsl:apply-templates/></span>
+ </xsl:template>
+
+</xsl:stylesheet>