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/>
14 <xsl:when test=
"$generate.help.mapping != '0'">
15 <xsl:call-template name=
"hh-alias"/>
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"/>
25 <xsl:value-of select=
"$htmlhelp.alias.file"/>
27 <xsl:with-param name=
"method" select=
"'text'"/>
28 <xsl:with-param name=
"content">
30 <xsl:when test=
"$rootid != ''">
31 <xsl:apply-templates select=
"key('id',$rootid)" mode=
"hh-alias"/>
34 <xsl:apply-templates select=
"/" mode=
"hh-alias"/>
38 <xsl:with-param name=
"encoding" select=
"$htmlhelp.encoding"/>
39 <xsl:with-param name=
"quiet" select=
"$chunk.quietly"/>
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"
47 <xsl:with-param name=
"attribute" select=
"'topicname'"/>
50 <xsl:variable name=
"href">
51 <xsl:call-template name=
"href.target.with.base.dir">
52 <xsl:with-param name=
"object" select=
".."/>
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>
</xsl:text>
62 <xsl:template match=
"text()" mode=
"hh-alias"/>