Remove bogus reference to checkout.ico
[TortoiseGit.git] / doc / xsl / htmlchunk.xsl
blob2ce133a74806eaed7558a8ab70d43ab4af93b684
1 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
3 <xsl:import href="./db_htmlchunk.xsl"/>
4 <xsl:import href="./tgit.xsl"/>
5 <xsl:param name="ulink.target">_blank</xsl:param>
6 <xsl:param name="keep.relative.image.uris" select="0"/>
7 <xsl:param name="chunker.output.encoding" select="'UTF-8'"/>
8 <xsl:param name="callout.graphics.extension">.svg</xsl:param>
10 <xsl:param name="generate.help.mapping" select="1"/>
11 <xsl:template match="/">
12 <xsl:apply-templates/>
13 <xsl:choose>
14 <xsl:when test="$generate.help.mapping != '0'">
15 <xsl:call-template name="hh-alias"/>
16 </xsl:when>
17 </xsl:choose>
18 </xsl:template>
19 <xsl:template name="hh-alias">
20 <xsl:call-template name="write.text.chunk">
21 <xsl:with-param name="filename">
22 <xsl:if test="$manifest.in.base.dir != 0">
23 <xsl:value-of select="$chunk.base.dir"/>
24 </xsl:if>
25 <xsl:value-of select="$htmlhelp.alias.file"/>
26 </xsl:with-param>
27 <xsl:with-param name="method" select="'text'"/>
28 <xsl:with-param name="content">
29 <xsl:choose>
30 <xsl:when test="$rootid != ''">
31 <xsl:apply-templates select="key('id',$rootid)" mode="hh-alias"/>
32 </xsl:when>
33 <xsl:otherwise>
34 <xsl:apply-templates select="/" mode="hh-alias"/>
35 </xsl:otherwise>
36 </xsl:choose>
37 </xsl:with-param>
38 <xsl:with-param name="encoding" select="$htmlhelp.encoding"/>
39 <xsl:with-param name="quiet" select="$chunk.quietly"/>
40 </xsl:call-template>
41 </xsl:template>
42 <xsl:template match="processing-instruction('dbhh')" mode="hh-alias">
43 <xsl:variable name="topicname">
44 <xsl:call-template name="pi-attribute">
45 <xsl:with-param name="pis"
46 select="."/>
47 <xsl:with-param name="attribute" select="'topicname'"/>
48 </xsl:call-template>
49 </xsl:variable>
50 <xsl:variable name="href">
51 <xsl:call-template name="href.target.with.base.dir">
52 <xsl:with-param name="object" select=".."/>
53 </xsl:call-template>
54 </xsl:variable>
55 <xsl:value-of select="$topicname"/>
56 <xsl:text>=</xsl:text>
57 <!-- Some versions of HH doesn't like fragment identifires, but some does. -->
58 <!-- <xsl:value-of select="substring-before(concat($href, '#'), '#')"/> -->
59 <xsl:value-of select="$href"/>
60 <xsl:text>&#xA;</xsl:text>
61 </xsl:template>
62 <xsl:template match="text()" mode="hh-alias"/>
63 </xsl:stylesheet>