source: trunk/Distribution/XSL/slides/htmlhelp/htmlhelp.xsl

Last change on this file was 2, checked in by jkacer, 18 years ago

Added all DocBook Framework stuff:

  • DocBook DTD
  • Transformation software FOP 0.20.5 and Saxon 6
  • XSL styles
  • Rexx scripts

Also added some WarpIN-related stuff for creation of WarpIN installation packages.
This state corresponds to version 1.0.0 from November 2005, just slightly modified to carry versioning information (Rexx scripts).

File size: 3.7 KB
Line 
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: htmlhelp.xsl,v 1.2 2004/09/20 21:00:13 kosek Exp $
11 ********************************************************************
12
13 This stylesheet can convert DocBook Slides document type into HTML Help.
14
15 ******************************************************************** -->
16
17<xsl:import href="../html/plain.xsl"/>
18<xsl:include href="http://docbook.sourceforge.net/release/xsl/current/htmlhelp/htmlhelp-common.xsl"/>
19
20<xsl:param name="keyboard.nav" select="0"/>
21<xsl:param name="htmlhelp.default.topic" select="'index.html'"/>
22
23<xsl:template match="slides" mode="title.markup">
24 <xsl:param name="allow-anchors" select="0"/>
25 <xsl:apply-templates select="(slidesinfo/title|title)[1]"
26 mode="title.markup">
27 <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
28 </xsl:apply-templates>
29</xsl:template>
30
31<xsl:template match="slides|foilgroup" mode="hhc">
32 <xsl:variable name="title">
33 <xsl:if test="$htmlhelp.autolabel=1">
34 <xsl:variable name="label.markup">
35 <xsl:apply-templates select="." mode="label.markup"/>
36 </xsl:variable>
37 <xsl:if test="normalize-space($label.markup)">
38 <xsl:value-of select="concat($label.markup,$autotoc.label.separator)"/>
39 </xsl:if>
40 </xsl:if>
41 <xsl:call-template name="escape-attr">
42 <xsl:with-param name="value">
43 <xsl:apply-templates select="." mode="title.markup"/>
44 </xsl:with-param>
45 </xsl:call-template>
46 </xsl:variable>
47
48 <xsl:if test="$htmlhelp.hhc.show.root != 0 or parent::*">
49 <xsl:text disable-output-escaping="yes">&lt;LI&gt; &lt;OBJECT type="text/sitemap"&gt;
50 &lt;param name="Name" value="</xsl:text>
51 <xsl:value-of select="normalize-space($title)"/>
52 <xsl:text disable-output-escaping="yes">"&gt;
53 &lt;param name="Local" value="</xsl:text>
54 <xsl:apply-templates select="." mode="filename"/>
55 <xsl:text disable-output-escaping="yes">"&gt;
56 &lt;/OBJECT&gt;</xsl:text>
57 </xsl:if>
58 <xsl:if test="foil|foilgroup">
59 <xsl:text disable-output-escaping="yes">&lt;UL&gt;</xsl:text>
60 <xsl:apply-templates select="foil|foilgroup" mode="hhc"/>
61 <xsl:text disable-output-escaping="yes">&lt;/UL&gt;</xsl:text>
62 </xsl:if>
63</xsl:template>
64
65<xsl:template match="foil" mode="hhc">
66 <xsl:variable name="title">
67 <xsl:if test="$htmlhelp.autolabel=1">
68 <xsl:variable name="label.markup">
69 <xsl:apply-templates select="." mode="label.markup"/>
70 </xsl:variable>
71 <xsl:if test="normalize-space($label.markup)">
72 <xsl:value-of select="concat($label.markup,$autotoc.label.separator)"/>
73 </xsl:if>
74 </xsl:if>
75 <xsl:call-template name="escape-attr">
76 <xsl:with-param name="value">
77 <xsl:apply-templates select="." mode="title.markup"/>
78 </xsl:with-param>
79 </xsl:call-template>
80 </xsl:variable>
81
82 <xsl:if test="$htmlhelp.hhc.show.root != 0 or parent::*">
83 <xsl:text disable-output-escaping="yes">&lt;LI&gt; &lt;OBJECT type="text/sitemap"&gt;
84 &lt;param name="Name" value="</xsl:text>
85 <xsl:value-of select="normalize-space($title)"/>
86 <xsl:text disable-output-escaping="yes">"&gt;
87 &lt;param name="Local" value="</xsl:text>
88 <xsl:apply-templates select="." mode="filename"/>
89 <xsl:text disable-output-escaping="yes">"&gt;
90 &lt;/OBJECT&gt;</xsl:text>
91 </xsl:if>
92</xsl:template>
93
94</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.