Whamcloud - gitweb
LU-8066 misc: replace /proc with "lctl get/set_param"
[doc/manual.git] / webhelp / webhelp.xsl
1 <?xml version="1.0"?>
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3                 xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
4                 xmlns:exsl="http://exslt.org/common"
5                 xmlns:set="http://exslt.org/sets"
6                 version="1.0"
7                 exclude-result-prefixes="doc exsl set">
8
9 <!-- ********************************************************************
10      $Id$
11      ******************************************************************** 
12
13      This file is part customization layer on top of the XSL DocBook
14      Stylesheet distribution that generates webhelp output.
15
16      ******************************************************************** -->
17
18 <xsl:import href="xhtml/chunk.xsl"/>
19 <xsl:include href="webhelp-common.xsl"/>
20 <xsl:include href="xhtml/titlepage.templates.xsl"/>
21
22 <xsl:param name="webhelp.base.dir">../webhelp-out</xsl:param>
23 <xsl:param name="html.stylesheet">../style/manual.css</xsl:param>
24
25 <!-- include our decoration style for Lustre versions. -->
26 <xsl:include href='../style/customstyle_common.xsl'/>
27
28
29 <!-- only match if the node doesn't qualify for chunking, 
30      it does have a 'condition' attribute -->
31 <!--xsl:template match='*[not(self::set|self::self::book|self::part|self::preface|self::chapter|self::appendix|self::article|self::topic|self::reference|self::refentry|self::book/glossary|self::article/glossary|self::part/glossary|self::book/bibliography|self::article/bibliography|self::part/bibliography|self::colophon)]@condition]'-->
32 <!-- however, I can't get this to work, so instead, I will
33      just select the set that shouldn't find them selves being chunked.
34          This is not the right way to do this, and should be fixed. -->
35
36 <xsl:template match="*[self::para|self::glossentry|self::warning|self::note][@condition]">
37     <xsl:param name="content">
38         <xsl:apply-imports/>
39     </xsl:param>
40
41     <xsl:call-template name='condition-decorator'>
42         <xsl:with-param name='content' select="$content"/>
43     </xsl:call-template>
44 </xsl:template>
45
46 </xsl:stylesheet>