aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarja van Waes <marja@mageia.org>2015-01-29 21:15:22 +0100
committerMarja van Waes <marja@mageia.org>2015-01-29 21:15:32 +0100
commitec2d4c93a3dca5dae7a6aa7189dc642b53026e68 (patch)
treeb226c0e7d458165023ce737eb463930c38d63929
parent8d45a07641208ed5f692177217babf94cceed607 (diff)
downloadtools-ec2d4c93a3dca5dae7a6aa7189dc642b53026e68.tar
tools-ec2d4c93a3dca5dae7a6aa7189dc642b53026e68.tar.gz
tools-ec2d4c93a3dca5dae7a6aa7189dc642b53026e68.tar.bz2
tools-ec2d4c93a3dca5dae7a6aa7189dc642b53026e68.tar.xz
tools-ec2d4c93a3dca5dae7a6aa7189dc642b53026e68.zip
have a copy of our Calenco stylesheets
-rw-r--r--docs/stylesheets/WebHelp-DrakX.xsl109
-rw-r--r--docs/stylesheets/WebHelp-MCC.xsl121
-rw-r--r--docs/stylesheets/docbook-xhtml-drakx.xsl56
3 files changed, 286 insertions, 0 deletions
diff --git a/docs/stylesheets/WebHelp-DrakX.xsl b/docs/stylesheets/WebHelp-DrakX.xsl
new file mode 100644
index 00000000..85b74ac2
--- /dev/null
+++ b/docs/stylesheets/WebHelp-DrakX.xsl
@@ -0,0 +1,109 @@
+<?xml version='1.0'?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:exsl="http://exslt.org/common"
+ xmlns:cf="http://docbook.sourceforge.net/xmlns/chunkfast/1.0"
+ xmlns:ng="http://docbook.org/docbook-ng"
+ xmlns:db="http://docbook.org/ns/docbook"
+ exclude-result-prefixes="exsl cf ng db"
+ version="1.0">
+
+<?cco_xsltype addon="DocBook5.0" toolchain="DocBook_Screen_WebHelp"?>
+
+<xsl:import href="http://www.calenco.com/xsl/docbook/ns/webhelp/calenco-webhelp.xsl" />
+
+<!-- This stylesheet is used to generate the online html WebHelp publications
+ for our traditional (so not Live) installer -->
+
+<!--Add our own favicon and logo to the publications-->
+
+<xsl:param name="logo">http://docteam.mageia.nl/mageia-2013-200p.png</xsl:param>
+<xsl:param name="favicon">http://docteam.mageia.nl/favicon.png</xsl:param>
+
+<!-- if the value of "use.id.as.filename" is set to "1", and all
+sections have an xml:id, the generated files will get the names that
+are in the xml:id's -->
+
+<xsl:param name="use.id.as.filename" select="1"></xsl:param>
+
+<!-- add footer for license and copyright-->
+
+<xsl:template name="user.footer.content">
+ <script type="text/javascript" src="http://www.calenco.com/xsl/docbook/ns/webhelp/main.js">
+ <xsl:comment></xsl:comment>
+ </script>
+ <hr/>
+ <div class="copyright">&#169; Mageia</div>
+ <div class="license"><a href="index.html#CC_BY-SA">CC BY-SA 3.0</a></div>
+</xsl:template>
+
+<xsl:template name="article.titlepage.recto">
+ <xsl:choose>
+ <xsl:when test="db:articleinfo/db:title">
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:articleinfo/db:title"/>
+ </xsl:when>
+ <xsl:when test="db:artheader/db:title">
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:artheader/db:title"/>
+ </xsl:when>
+ <xsl:when test="db:info/db:title">
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:info/db:title"/>
+ </xsl:when>
+ <xsl:when test="db:title">
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:title"/>
+ </xsl:when>
+ </xsl:choose>
+
+ <xsl:choose>
+ <xsl:when test="db:articleinfo/db:subtitle">
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:articleinfo/db:subtitle"/>
+ </xsl:when>
+ <xsl:when test="db:artheader/db:subtitle">
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:artheader/db:subtitle"/>
+ </xsl:when>
+ <xsl:when test="db:info/db:subtitle">
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:info/db:subtitle"/>
+ </xsl:when>
+ <xsl:when test="db:subtitle">
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:subtitle"/>
+ </xsl:when>
+ </xsl:choose>
+
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:articleinfo/db:corpauthor"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:artheader/db:corpauthor"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:info/db:corpauthor"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:articleinfo/db:authorgroup"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:artheader/db:authorgroup"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:info/db:authorgroup"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:articleinfo/db:author"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:artheader/db:author"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:info/db:author"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:articleinfo/db:othercredit"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:artheader/db:othercredit"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:info/db:othercredit"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:articleinfo/db:releaseinfo"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:artheader/db:releaseinfo"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:info/db:releaseinfo"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:articleinfo/db:copyright"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:artheader/db:copyright"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:info/db:copyright"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:articleinfo/db:legalnotice"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:artheader/db:legalnotice"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:info/db:legalnotice"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:articleinfo/db:pubdate"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:artheader/db:pubdate"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:info/db:pubdate"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:articleinfo/db:revision"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:artheader/db:revision"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:info/db:revision"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:articleinfo/db:revhistory"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:artheader/db:revhistory"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:info/db:revhistory"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:articleinfo/db:abstract"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:artheader/db:abstract"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:info/db:abstract"/>
+
+ <xsl:apply-templates select="//db:cover[1]/*"/>
+
+</xsl:template>
+
+
+</xsl:stylesheet>
diff --git a/docs/stylesheets/WebHelp-MCC.xsl b/docs/stylesheets/WebHelp-MCC.xsl
new file mode 100644
index 00000000..ecfb2cde
--- /dev/null
+++ b/docs/stylesheets/WebHelp-MCC.xsl
@@ -0,0 +1,121 @@
+<?xml version='1.0'?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:exsl="http://exslt.org/common"
+ xmlns:cf="http://docbook.sourceforge.net/xmlns/chunkfast/1.0"
+ xmlns:ng="http://docbook.org/docbook-ng"
+ xmlns:db="http://docbook.org/ns/docbook"
+ exclude-result-prefixes="exsl cf ng db"
+ version="1.0">
+
+<?cco_xsltype addon="DocBook5.0" toolchain="DocBook_Screen_WebHelp"?>
+
+<xsl:import href="http://www.calenco.com/xsl/docbook/ns/webhelp/calenco-webhelp.xsl" />
+
+<!--Add our own favicon and logo to the publications-->
+
+<xsl:param name="logo">http://docteam.mageia.nl/mageia-2013-200p.png</xsl:param>
+<xsl:param name="favicon">http://docteam.mageia.nl/favicon.png</xsl:param>
+
+<!-- if the value of "use.id.as.filename" is set to "1", and all
+sections have an xml:id, the generated files will get the names that
+are in the xml:id's -->
+
+<xsl:param name="use.id.as.filename" select="1"></xsl:param>
+
+<!-- add footer for license and copyright-->
+
+<xsl:template name="user.footer.content">
+ <script type="text/javascript" src="http://www.calenco.com/xsl/docbook/ns/webhelp/main.js">
+ <xsl:comment></xsl:comment>
+ </script>
+ <hr/>
+ <div class="copyright">&#169; Mageia</div>
+ <div class="license"><a href="index.html#CC_BY-SA">CC BY-SA 3.0</a></div>
+</xsl:template>
+
+<!-- The following line will let every first section start a new seperate page -->
+
+<xsl:param select="1" name="chunk.first.sections"></xsl:param>
+
+<!-- the above didn't make a difference at first, but was needed after moving
+ 2nd level includes from MCC.xml to the first sections of the chapters:
+ to the files software-management.xml and mcc-*.xml and after making those
+ files the (only and) first level includes in MCC.xml-->
+
+<!-- but the following line did the trick already on its own when all includes
+ were still in MCC.xml and I had put them inside 1st level (MCC-*)
+ sections, which made the includes 2nd level. -->
+
+<xsl:param select="2" name="chunk.section.depth"></xsl:param>
+
+<xsl:template name="article.titlepage.recto">
+ <xsl:choose>
+ <xsl:when test="db:articleinfo/db:title">
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:articleinfo/db:title"/>
+ </xsl:when>
+ <xsl:when test="db:artheader/db:title">
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:artheader/db:title"/>
+ </xsl:when>
+ <xsl:when test="db:info/db:title">
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:info/db:title"/>
+ </xsl:when>
+ <xsl:when test="db:title">
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:title"/>
+ </xsl:when>
+ </xsl:choose>
+
+ <xsl:choose>
+ <xsl:when test="db:articleinfo/db:subtitle">
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:articleinfo/db:subtitle"/>
+ </xsl:when>
+ <xsl:when test="db:artheader/db:subtitle">
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:artheader/db:subtitle"/>
+ </xsl:when>
+ <xsl:when test="db:info/db:subtitle">
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:info/db:subtitle"/>
+ </xsl:when>
+ <xsl:when test="db:subtitle">
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:subtitle"/>
+ </xsl:when>
+ </xsl:choose>
+
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:articleinfo/db:corpauthor"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:artheader/db:corpauthor"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:info/db:corpauthor"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:articleinfo/db:authorgroup"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:artheader/db:authorgroup"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:info/db:authorgroup"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:articleinfo/db:author"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:artheader/db:author"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:info/db:author"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:articleinfo/db:othercredit"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:artheader/db:othercredit"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:info/db:othercredit"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:articleinfo/db:releaseinfo"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:artheader/db:releaseinfo"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:info/db:releaseinfo"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:articleinfo/db:copyright"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:artheader/db:copyright"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:info/db:copyright"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:articleinfo/db:legalnotice"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:artheader/db:legalnotice"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:info/db:legalnotice"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:articleinfo/db:pubdate"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:artheader/db:pubdate"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:info/db:pubdate"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:articleinfo/db:revision"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:artheader/db:revision"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:info/db:revision"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:articleinfo/db:revhistory"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:artheader/db:revhistory"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:info/db:revhistory"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:articleinfo/db:abstract"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:artheader/db:abstract"/>
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="db:info/db:abstract"/>
+
+ <xsl:apply-templates select="//db:cover[1]/*"/>
+
+</xsl:template>
+
+
+</xsl:stylesheet>
diff --git a/docs/stylesheets/docbook-xhtml-drakx.xsl b/docs/stylesheets/docbook-xhtml-drakx.xsl
new file mode 100644
index 00000000..e1a40391
--- /dev/null
+++ b/docs/stylesheets/docbook-xhtml-drakx.xsl
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/TR/xhtml1/transitional" exclude-result-prefixes="#default" version="1.0">
+<?cco_xsltype addon="DocBook5.0" toolchain="DocBook_Screen_Chunk"?>
+
+ <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/profile-chunk.xsl"></xsl:import>
+ <xsl:import href="docbook-xhtml-common.xsl"></xsl:import>
+
+<!-- Add variable and custom template definitions in "docbook-xhtml.xsl" -->
+<!-- This stylesheet is used to generate the html files for
+ drakx-installer-help, the inline help for drakx-installer-stage2 -->
+
+<xsl:param select="'1'" name="using.chunker"></xsl:param>
+<xsl:param name="base.dir">master.html/</xsl:param>
+<xsl:param select="'1'" name="use.id.as.filename"></xsl:param>
+<xsl:param select="'.html'" name="html.ext"></xsl:param>
+<xsl:param select="'1'" name="chunk.quietly"></xsl:param>
+
+
+<xsl:param select="'.chunks'" name="chunk.datafile"></xsl:param>
+<xsl:param select="'1'" name="chunk.first.sections"></xsl:param>
+<xsl:param select="'1'" name="chunk.section.depth"></xsl:param>
+<xsl:param select="'UTF-8'" name="chunker.output.encoding"></xsl:param>
+<xsl:param select="'yes'" name="chunker.output.indent"></xsl:param>
+<xsl:param select="''" name="chunk.toc"></xsl:param>
+
+<xsl:param name="css.decoration">0</xsl:param>
+<xsl:param select="''" name="html.stylesheet"></xsl:param>
+
+
+<xsl:param select="0" name="section.autolabel"></xsl:param>
+
+<!-- Do not give the name of the icon -->
+<xsl:param select="0" name="admon.textlabel"></xsl:param>
+
+
+<!-- DO not output screenshots for inline help -->
+<xsl:template match="figure"></xsl:template>
+<xsl:template match="mediaobject"></xsl:template>
+
+<!--Do not output othercredit name + e-mail address in each file -->
+<xsl:template match="othercredit" mode="section.titlepage.recto.auto.mode"></xsl:template>
+
+<!-- nor header / footer -->
+<xsl:param select="'1'" name="suppress.navigation"></xsl:param>
+
+<!-- Add Simple CSS -->
+
+<xsl:template name="user.head.content">
+ <style type="text/css">
+ <xsl:comment>
+ body { font-family: sans-serif; font-size: 13px }
+ table { font-family: sans-serif; font-size: 13px }
+ </xsl:comment>
+ </style>
+</xsl:template>
+
+</xsl:stylesheet>