|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0"
|
|
Packit Service |
6d40f9 |
exclude-result-prefixes="l"
|
|
Packit Service |
6d40f9 |
version="1.0">
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
"chunkfast.xsl", but I can see a difference -->
|
|
Packit Service |
6d40f9 |
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl"/>
|
|
Packit Service |
6d40f9 |
<xsl:include href="version-greater-or-equal.xsl"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
match="glossentry/glossterm"
|
|
Packit Service |
6d40f9 |
use="."/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
match="para[@role='gallery']/link"
|
|
Packit Service |
6d40f9 |
use="@linkend"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:param name="toc.section.depth">3</xsl:param>
|
|
Packit Service |
6d40f9 |
<xsl:param name="generate.toc">
|
|
Packit Service |
6d40f9 |
book toc
|
|
Packit Service |
6d40f9 |
chapter toc
|
|
Packit Service |
6d40f9 |
glossary toc
|
|
Packit Service |
6d40f9 |
index toc
|
|
Packit Service |
6d40f9 |
part toc
|
|
Packit Service |
6d40f9 |
reference toc
|
|
Packit Service |
6d40f9 |
</xsl:param>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:param name="chunker.output.encoding" select="'UTF-8'"/>
|
|
Packit Service |
6d40f9 |
<xsl:param name="chunker.output.indent" select="'yes'"/>
|
|
Packit Service |
6d40f9 |
<xsl:param name="chunker.output.doctype-public" select="'-//W3C//DTD HTML 4.01 Transitional//EN'"/>
|
|
Packit Service |
6d40f9 |
<xsl:param name="chunk.fast" select="1"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:param name="default.encoding" select="'UTF-8'"/>
|
|
Packit Service |
6d40f9 |
<xsl:param name="chapter.autolabel" select="0"/>
|
|
Packit Service |
6d40f9 |
<xsl:param name="use.id.as.filename" select="1"/>
|
|
Packit Service |
6d40f9 |
<xsl:param name="html.ext" select="'.html'"/>
|
|
Packit Service |
6d40f9 |
<xsl:param name="refentry.generate.name" select="0"/>
|
|
Packit Service |
6d40f9 |
<xsl:param name="refentry.generate.title" select="1"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
it does not show much effect as we have a user.head.content template
|
|
Packit Service |
6d40f9 |
<xsl:param name="html.extra.head.links" select="0" />
|
|
Packit Service |
6d40f9 |
-->
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:param name="index.on.role" select="1"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:param name="variablelist.as.table" select="1"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:param name="glossterm.auto.link" select="0"></xsl:param>
|
|
Packit Service |
6d40f9 |
-->
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:param name="gtkdoc.version" select="''"/>
|
|
Packit Service |
6d40f9 |
<xsl:param name="gtkdoc.bookname" select="''"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
this atleast avoid the re-evaluation -->
|
|
Packit Service |
6d40f9 |
<xsl:template name="l10n.language">en</xsl:template>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:param name="gtkdoc.l10n.xml" select="document('http://docbook.sourceforge.net/release/xsl/current/common/en.xml')"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
match="l:gentext[@key]"
|
|
Packit Service |
6d40f9 |
use="@key"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
match="l:context[@name]"
|
|
Packit Service |
6d40f9 |
use="@name"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:template name="gentext">
|
|
Packit Service |
6d40f9 |
<xsl:param name="key" select="local-name(.)"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:for-each select="$gtkdoc.l10n.xml">
|
|
Packit Service |
6d40f9 |
<xsl:variable name="l10n.gentext" select="key('gtkdoc.gentext.key', $key)"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:choose>
|
|
Packit Service |
6d40f9 |
<xsl:when test="$l10n.gentext">
|
|
Packit Service |
6d40f9 |
<xsl:value-of select="$l10n.gentext/@text"/>
|
|
Packit Service |
6d40f9 |
</xsl:when>
|
|
Packit Service |
6d40f9 |
<xsl:otherwise>
|
|
Packit Service |
6d40f9 |
<xsl:message>
|
|
Packit Service |
6d40f9 |
<xsl:text>No "en" localization of "</xsl:text>
|
|
Packit Service |
6d40f9 |
<xsl:value-of select="$key"/>
|
|
Packit Service |
6d40f9 |
<xsl:text>" exists.</xsl:text>
|
|
Packit Service |
6d40f9 |
</xsl:message>
|
|
Packit Service |
6d40f9 |
</xsl:otherwise>
|
|
Packit Service |
6d40f9 |
</xsl:choose>
|
|
Packit Service |
6d40f9 |
</xsl:for-each>
|
|
Packit Service |
6d40f9 |
</xsl:template>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:template name="gentext.dingbat">
|
|
Packit Service |
6d40f9 |
<xsl:param name="dingbat">bullet</xsl:param>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
select="($gtkdoc.l10n.xml/l:l10n/l:dingbat[@key=$dingbat])[1]"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:choose>
|
|
Packit Service |
6d40f9 |
<xsl:when test="$l10n.dingbat">
|
|
Packit Service |
6d40f9 |
<xsl:value-of select="$l10n.dingbat/@text"/>
|
|
Packit Service |
6d40f9 |
</xsl:when>
|
|
Packit Service |
6d40f9 |
<xsl:otherwise>
|
|
Packit Service |
6d40f9 |
<xsl:message>
|
|
Packit Service |
6d40f9 |
<xsl:text>No "en" localization of dingbat </xsl:text>
|
|
Packit Service |
6d40f9 |
<xsl:value-of select="$dingbat"/>
|
|
Packit Service |
6d40f9 |
<xsl:text> exists; using "en".</xsl:text>
|
|
Packit Service |
6d40f9 |
</xsl:message>
|
|
Packit Service |
6d40f9 |
</xsl:otherwise>
|
|
Packit Service |
6d40f9 |
</xsl:choose>
|
|
Packit Service |
6d40f9 |
</xsl:template>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:template name="gentext.template">
|
|
Packit Service |
6d40f9 |
<xsl:param name="context" select="'default'"/>
|
|
Packit Service |
6d40f9 |
<xsl:param name="name" select="'default'"/>
|
|
Packit Service |
6d40f9 |
<xsl:param name="origname" select="$name"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:variable name="rname">
|
|
Packit Service |
6d40f9 |
<xsl:choose>
|
|
Packit Service |
6d40f9 |
<xsl:when test="starts-with($name, '/')">
|
|
Packit Service |
6d40f9 |
<xsl:value-of select="substring-after($name, '/')"/>
|
|
Packit Service |
6d40f9 |
</xsl:when>
|
|
Packit Service |
6d40f9 |
<xsl:otherwise>
|
|
Packit Service |
6d40f9 |
<xsl:value-of select="$name"/>
|
|
Packit Service |
6d40f9 |
</xsl:otherwise>
|
|
Packit Service |
6d40f9 |
</xsl:choose>
|
|
Packit Service |
6d40f9 |
</xsl:variable>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:message>
|
|
Packit Service |
6d40f9 |
<xsl:text>context:</xsl:text><xsl:value-of select="$context"/>
|
|
Packit Service |
6d40f9 |
<xsl:text>;name:</xsl:text><xsl:value-of select="$rname"/>
|
|
Packit Service |
6d40f9 |
<xsl:text>;origname:</xsl:text><xsl:value-of select="$origname"/>
|
|
Packit Service |
6d40f9 |
</xsl:message>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
see html/html.xsl:<xsl:template match="*" mode="html.title.attribute">
|
|
Packit Service |
6d40f9 |
-->
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:for-each select="$gtkdoc.l10n.xml">
|
|
Packit Service |
6d40f9 |
<xsl:variable name="context.node" select="key('gtkdoc.context.key', $context)"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
select="($context.node/l:template[@name=$rname])[1]"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:choose>
|
|
Packit Service |
6d40f9 |
<xsl:when test="$template.node/@text">
|
|
Packit Service |
6d40f9 |
<xsl:value-of select="$template.node/@text"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:message>
|
|
Packit Service |
6d40f9 |
<xsl:text>=</xsl:text><xsl:value-of select="$template.node/@text"/>
|
|
Packit Service |
6d40f9 |
</xsl:message>
|
|
Packit Service |
6d40f9 |
-->
|
|
Packit Service |
6d40f9 |
</xsl:when>
|
|
Packit Service |
6d40f9 |
<xsl:otherwise>
|
|
Packit Service |
6d40f9 |
<xsl:choose>
|
|
Packit Service |
6d40f9 |
<xsl:when test="contains($rname, '/')">
|
|
Packit Service |
6d40f9 |
<xsl:call-template name="gentext.template">
|
|
Packit Service |
6d40f9 |
<xsl:with-param name="context" select="$context"/>
|
|
Packit Service |
6d40f9 |
<xsl:with-param name="name" select="substring-after($rname, '/')"/>
|
|
Packit Service |
6d40f9 |
<xsl:with-param name="origname" select="$origname"/>
|
|
Packit Service |
6d40f9 |
</xsl:call-template>
|
|
Packit Service |
6d40f9 |
</xsl:when>
|
|
Packit Service |
6d40f9 |
</xsl:choose>
|
|
Packit Service |
6d40f9 |
</xsl:otherwise>
|
|
Packit Service |
6d40f9 |
</xsl:choose>
|
|
Packit Service |
6d40f9 |
</xsl:for-each>
|
|
Packit Service |
6d40f9 |
</xsl:template>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:template name="gentext.template.exists">
|
|
Packit Service |
6d40f9 |
<xsl:param name="context" select="'default'"/>
|
|
Packit Service |
6d40f9 |
<xsl:param name="name" select="'default'"/>
|
|
Packit Service |
6d40f9 |
<xsl:param name="origname" select="$name"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:variable name="template">
|
|
Packit Service |
6d40f9 |
<xsl:call-template name="gentext.template">
|
|
Packit Service |
6d40f9 |
<xsl:with-param name="context" select="$context"/>
|
|
Packit Service |
6d40f9 |
<xsl:with-param name="name" select="$name"/>
|
|
Packit Service |
6d40f9 |
<xsl:with-param name="origname" select="$origname"/>
|
|
Packit Service |
6d40f9 |
</xsl:call-template>
|
|
Packit Service |
6d40f9 |
</xsl:variable>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:choose>
|
|
Packit Service |
6d40f9 |
<xsl:when test="string-length($template) != 0">1</xsl:when>
|
|
Packit Service |
6d40f9 |
<xsl:otherwise>0</xsl:otherwise>
|
|
Packit Service |
6d40f9 |
</xsl:choose>
|
|
Packit Service |
6d40f9 |
</xsl:template>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:template name="generate.html.title"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:variable name="has.title.markup">
|
|
Packit Service |
6d40f9 |
<xsl:apply-templates select="." mode="title.markup">
|
|
Packit Service |
6d40f9 |
<xsl:with-param name="verbose" select="0"/>
|
|
Packit Service |
6d40f9 |
</xsl:apply-templates>
|
|
Packit Service |
6d40f9 |
</xsl:variable>
|
|
Packit Service |
6d40f9 |
<xsl:if test="$has.title.markup != '???TITLE???'">
|
|
Packit Service |
6d40f9 |
<xsl:variable name="gentext.title">
|
|
Packit Service |
6d40f9 |
<xsl:apply-templates select="." mode="object.title.markup.textonly"/>
|
|
Packit Service |
6d40f9 |
</xsl:variable>
|
|
Packit Service |
6d40f9 |
<xsl:choose>
|
|
Packit Service |
6d40f9 |
<xsl:when test="string-length($gentext.title) != 0">
|
|
Packit Service |
6d40f9 |
<xsl:attribute name="title">
|
|
Packit Service |
6d40f9 |
<xsl:value-of select="$gentext.title"/>
|
|
Packit Service |
6d40f9 |
</xsl:attribute>
|
|
Packit Service |
6d40f9 |
</xsl:when>
|
|
Packit Service |
6d40f9 |
<xsl:when test="alt">
|
|
Packit Service |
6d40f9 |
<xsl:attribute name="title">
|
|
Packit Service |
6d40f9 |
<xsl:value-of select="normalize-space(alt)"/>
|
|
Packit Service |
6d40f9 |
</xsl:attribute>
|
|
Packit Service |
6d40f9 |
</xsl:when>
|
|
Packit Service |
6d40f9 |
</xsl:choose>
|
|
Packit Service |
6d40f9 |
</xsl:if>
|
|
Packit Service |
6d40f9 |
</xsl:template-->
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:template match="*" mode="html.title.attribute">
|
|
Packit Service |
6d40f9 |
<xsl:variable name="has.title.markup">
|
|
Packit Service |
6d40f9 |
<xsl:apply-templates select="." mode="title.markup">
|
|
Packit Service |
6d40f9 |
<xsl:with-param name="verbose" select="0"/>
|
|
Packit Service |
6d40f9 |
</xsl:apply-templates>
|
|
Packit Service |
6d40f9 |
</xsl:variable>
|
|
Packit Service |
6d40f9 |
<xsl:if test="$has.title.markup != '???TITLE???'">
|
|
Packit Service |
6d40f9 |
<xsl:variable name="is.title">
|
|
Packit Service |
6d40f9 |
<xsl:call-template name="gentext.template.exists">
|
|
Packit Service |
6d40f9 |
<xsl:with-param name="context" select="'title'"/>
|
|
Packit Service |
6d40f9 |
<xsl:with-param name="name" select="local-name(.)"/>
|
|
Packit Service |
6d40f9 |
<xsl:with-param name="lang">
|
|
Packit Service |
6d40f9 |
<xsl:call-template name="l10n.language"/>
|
|
Packit Service |
6d40f9 |
</xsl:with-param>
|
|
Packit Service |
6d40f9 |
</xsl:call-template>
|
|
Packit Service |
6d40f9 |
</xsl:variable>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:variable name="is.title-numbered">
|
|
Packit Service |
6d40f9 |
<xsl:if test="$is.title = 0">
|
|
Packit Service |
6d40f9 |
<xsl:call-template name="gentext.template.exists">
|
|
Packit Service |
6d40f9 |
<xsl:with-param name="context" select="'title-numbered'"/>
|
|
Packit Service |
6d40f9 |
<xsl:with-param name="name" select="local-name(.)"/>
|
|
Packit Service |
6d40f9 |
<xsl:with-param name="lang">
|
|
Packit Service |
6d40f9 |
<xsl:call-template name="l10n.language"/>
|
|
Packit Service |
6d40f9 |
</xsl:with-param>
|
|
Packit Service |
6d40f9 |
</xsl:call-template>
|
|
Packit Service |
6d40f9 |
</xsl:if>
|
|
Packit Service |
6d40f9 |
</xsl:variable>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:variable name="is.title-unnumbered">
|
|
Packit Service |
6d40f9 |
<xsl:if test="$is.title = 0 and $is.title-numbered = 0">
|
|
Packit Service |
6d40f9 |
<xsl:call-template name="gentext.template.exists">
|
|
Packit Service |
6d40f9 |
<xsl:with-param name="context" select="'title-unnumbered'"/>
|
|
Packit Service |
6d40f9 |
<xsl:with-param name="name" select="local-name(.)"/>
|
|
Packit Service |
6d40f9 |
<xsl:with-param name="lang">
|
|
Packit Service |
6d40f9 |
<xsl:call-template name="l10n.language"/>
|
|
Packit Service |
6d40f9 |
</xsl:with-param>
|
|
Packit Service |
6d40f9 |
</xsl:call-template>
|
|
Packit Service |
6d40f9 |
</xsl:if>
|
|
Packit Service |
6d40f9 |
</xsl:variable>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:variable name="gentext.title">
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
$is.title-numbered != 0 or
|
|
Packit Service |
6d40f9 |
$is.title-unnumbered != 0">
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
mode="object.title.markup.textonly"/>
|
|
Packit Service |
6d40f9 |
</xsl:if>
|
|
Packit Service |
6d40f9 |
</xsl:variable>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:choose>
|
|
Packit Service |
6d40f9 |
<xsl:when test="string-length($gentext.title) != 0">
|
|
Packit Service |
6d40f9 |
<xsl:attribute name="title">
|
|
Packit Service |
6d40f9 |
<xsl:value-of select="$gentext.title"/>
|
|
Packit Service |
6d40f9 |
</xsl:attribute>
|
|
Packit Service |
6d40f9 |
</xsl:when>
|
|
Packit Service |
6d40f9 |
<xsl:when test="alt">
|
|
Packit Service |
6d40f9 |
<xsl:attribute name="title">
|
|
Packit Service |
6d40f9 |
<xsl:value-of select="normalize-space(alt)"/>
|
|
Packit Service |
6d40f9 |
</xsl:attribute>
|
|
Packit Service |
6d40f9 |
</xsl:when>
|
|
Packit Service |
6d40f9 |
</xsl:choose>
|
|
Packit Service |
6d40f9 |
</xsl:if>
|
|
Packit Service |
6d40f9 |
</xsl:template>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:template match="book|article">
|
|
Packit Service |
6d40f9 |
<xsl:variable name="tooldver">
|
|
Packit Service |
6d40f9 |
<xsl:call-template name="version-greater-or-equal">
|
|
Packit Service |
6d40f9 |
<xsl:with-param name="ver1" select="$VERSION" />
|
|
Packit Service |
6d40f9 |
<xsl:with-param name="ver2">1.36</xsl:with-param>
|
|
Packit Service |
6d40f9 |
</xsl:call-template>
|
|
Packit Service |
6d40f9 |
</xsl:variable>
|
|
Packit Service |
6d40f9 |
<xsl:if test="$tooldver = 0">
|
|
Packit Service |
6d40f9 |
<xsl:message terminate="yes">
|
|
Packit Service |
6d40f9 |
FATAL-ERROR: You need the DocBook XSL Stylesheets version 1.36 or higher
|
|
Packit Service |
6d40f9 |
to build the documentation.
|
|
Packit Service |
6d40f9 |
Get a newer version at http://docbook.sourceforge.net/projects/xsl/
|
|
Packit Service |
6d40f9 |
</xsl:message>
|
|
Packit Service |
6d40f9 |
</xsl:if>
|
|
Packit Service |
6d40f9 |
<xsl:apply-imports/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:call-template name="generate.index"/>
|
|
Packit Service |
6d40f9 |
</xsl:template>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:template name="generate.index">
|
|
Packit Service |
6d40f9 |
<xsl:call-template name="write.text.chunk">
|
|
Packit Service |
6d40f9 |
<xsl:with-param name="filename" select="'index.sgml'"/>
|
|
Packit Service |
6d40f9 |
<xsl:with-param name="content">
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
mode="generate.index.mode"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
The obvious way to write this is //anchor|//refentry|etc...
|
|
Packit Service |
6d40f9 |
The obvious way is slow because it causes multiple traversals
|
|
Packit Service |
6d40f9 |
in libxslt. This take about half the time.
|
|
Packit Service |
6d40f9 |
-->
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
name() = 'refsect2' or name()='refsynopsisdiv' or
|
|
Packit Service |
6d40f9 |
name()='varlistentry']"
|
|
Packit Service |
6d40f9 |
mode="generate.index.mode"/>
|
|
Packit Service |
6d40f9 |
</xsl:with-param>
|
|
Packit Service |
6d40f9 |
<xsl:with-param name="default.encoding" select="'UTF-8'"/>
|
|
Packit Service |
6d40f9 |
<xsl:with-param name="chunker.output.indent" select="'no'"/>
|
|
Packit Service |
6d40f9 |
</xsl:call-template>
|
|
Packit Service |
6d40f9 |
</xsl:template>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:template match="*" mode="generate.index.mode">
|
|
Packit Service |
6d40f9 |
<xsl:if test="not(@href) and count(@id) > 0">
|
|
Packit Service |
6d40f9 |
<xsl:text><ANCHOR id="</xsl:text>
|
|
Packit Service |
6d40f9 |
<xsl:value-of select="@id"/>
|
|
Packit Service |
6d40f9 |
<xsl:text>" href="</xsl:text>
|
|
Packit Service |
6d40f9 |
<xsl:if test="$gtkdoc.bookname">
|
|
Packit Service |
6d40f9 |
<xsl:value-of select="$gtkdoc.bookname"/>
|
|
Packit Service |
6d40f9 |
<xsl:text>/</xsl:text>
|
|
Packit Service |
6d40f9 |
</xsl:if>
|
|
Packit Service |
6d40f9 |
<xsl:call-template name="href.target"/>
|
|
Packit Service |
6d40f9 |
<xsl:text>">
</xsl:text>
|
|
Packit Service |
6d40f9 |
</xsl:if>
|
|
Packit Service |
6d40f9 |
</xsl:template>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:template match="/book/bookinfo/releaseinfo/ulink" mode="generate.index.mode">
|
|
Packit Service |
6d40f9 |
<xsl:if test="@role='online-location'">
|
|
Packit Service |
6d40f9 |
<xsl:text><ONLINE href="</xsl:text>
|
|
Packit Service |
6d40f9 |
<xsl:value-of select="@url"/>
|
|
Packit Service |
6d40f9 |
<xsl:text>">
</xsl:text>
|
|
Packit Service |
6d40f9 |
</xsl:if>
|
|
Packit Service |
6d40f9 |
</xsl:template>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:template match="link">
|
|
Packit Service |
6d40f9 |
<xsl:choose>
|
|
Packit Service |
6d40f9 |
<xsl:when test="id(@linkend)">
|
|
Packit Service |
6d40f9 |
<xsl:apply-imports/>
|
|
Packit Service |
6d40f9 |
</xsl:when>
|
|
Packit Service |
6d40f9 |
<xsl:otherwise>
|
|
Packit Service |
6d40f9 |
<GTKDOCLINK HREF="{@linkend}">
|
|
Packit Service |
6d40f9 |
<xsl:apply-templates/>
|
|
Packit Service |
6d40f9 |
</GTKDOCLINK>
|
|
Packit Service |
6d40f9 |
</xsl:otherwise>
|
|
Packit Service |
6d40f9 |
</xsl:choose>
|
|
Packit Service |
6d40f9 |
</xsl:template>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
the normal gtk-doc output style. -->
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:param name="shade.verbatim" select="0"/>
|
|
Packit Service |
6d40f9 |
<xsl:param name="refentry.separator" select="0"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:template match="refsect2">
|
|
Packit Service |
6d40f9 |
<xsl:if test="preceding-sibling::refsect2">
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
</xsl:if>
|
|
Packit Service |
6d40f9 |
<xsl:apply-imports/>
|
|
Packit Service |
6d40f9 |
</xsl:template>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:template name="user.head.content">
|
|
Packit Service |
6d40f9 |
<xsl:if test="$gtkdoc.version">
|
|
Packit Service |
6d40f9 |
<meta name="generator" content="GTK-Doc V{$gtkdoc.version} (XML mode)"/>
|
|
Packit Service |
6d40f9 |
</xsl:if>
|
|
Packit Service |
6d40f9 |
<link rel="stylesheet" href="style.css" type="text/css"/>
|
|
Packit Service |
6d40f9 |
</xsl:template>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:template name="user.footer.content">
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:choose>
|
|
Packit Service |
6d40f9 |
<xsl:when test="$gtkdoc.version">
|
|
Packit Service |
6d40f9 |
Generated by GTK-Doc V<xsl:copy-of select="$gtkdoc.version" />
|
|
Packit Service |
6d40f9 |
</xsl:when>
|
|
Packit Service |
6d40f9 |
<xsl:otherwise>
|
|
Packit Service |
6d40f9 |
Generated by GTK-Doc
|
|
Packit Service |
6d40f9 |
</xsl:otherwise>
|
|
Packit Service |
6d40f9 |
</xsl:choose>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
</xsl:template>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:template match="title" mode="book.titlepage.recto.mode">
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
cellpadding="2" cellspacing="0">
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:value-of select="."/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
</xsl:template>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:template name="header.navigation">
|
|
Packit Service |
6d40f9 |
<xsl:param name="prev" select="/foo"/>
|
|
Packit Service |
6d40f9 |
<xsl:param name="next" select="/foo"/>
|
|
Packit Service |
6d40f9 |
<xsl:variable name="home" select="/*[1]"/>
|
|
Packit Service |
6d40f9 |
<xsl:variable name="up" select="parent::*"/>
|
|
Packit Service |
6d40f9 |
<xsl:variable name="refsections" select="./refsect1[@role]"/>
|
|
Packit Service |
6d40f9 |
<xsl:variable name="glssections" select="./glossdiv/title"/>
|
|
Packit Service |
6d40f9 |
<xsl:variable name="idxsections" select="./indexdiv/indexdiv/title"/>
|
|
Packit Service |
6d40f9 |
<xsl:variable name="section_id" select="./@id"/>
|
|
Packit Service |
6d40f9 |
<xsl:variable name="sect_object_hierarchy" select="./refsect1[@role='object_hierarchy']"/>
|
|
Packit Service |
6d40f9 |
<xsl:variable name="sect_impl_interfaces" select="./refsect1[@role='impl_interfaces']"/>
|
|
Packit Service |
6d40f9 |
<xsl:variable name="sect_prerequisites" select="./refsect1[@role='prerequisites']"/>
|
|
Packit Service |
6d40f9 |
<xsl:variable name="sect_derived_interfaces" select="./refsect1[@role='derived_interfaces']"/>
|
|
Packit Service |
6d40f9 |
<xsl:variable name="sect_implementations" select="./refsect1[@role='implementations']"/>
|
|
Packit Service |
6d40f9 |
<xsl:variable name="sect_properties" select="./refsect1[@role='properties']"/>
|
|
Packit Service |
6d40f9 |
<xsl:variable name="sect_child_properties" select="./refsect1[@role='child_properties']"/>
|
|
Packit Service |
6d40f9 |
<xsl:variable name="sect_style_properties" select="./refsect1[@role='style_properties']"/>
|
|
Packit Service |
6d40f9 |
<xsl:variable name="sect_signal_proto" select="./refsect1[@role='signal_proto']"/>
|
|
Packit Service |
6d40f9 |
<xsl:variable name="sect_desc" select="./refsect1[@role='desc']"/>
|
|
Packit Service |
6d40f9 |
<xsl:variable name="sect_synopsis" select="./refsynopsisdiv[@role='synopsis']"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:variable name="sect_details" select="./refsect1[@id='details']"/>
|
|
Packit Service |
6d40f9 |
<xsl:variable name="sect_property_details" select="./refsect1[@id='property_details']"/>
|
|
Packit Service |
6d40f9 |
<xsl:variable name="sect_child_property_details" select="./refsect1[@id='child_property_details']"/>
|
|
Packit Service |
6d40f9 |
<xsl:variable name="sect_style_property_details" select="./refsect1[@id='style_property_details']"/>
|
|
Packit Service |
6d40f9 |
<xsl:variable name="sect_signals" select="./refsect1[@id='signals']"/>
|
|
Packit Service |
6d40f9 |
-->
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:if test="$suppress.navigation = '0' and $home != .">
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
summary = "Navigation header" cellpadding="2" cellspacing="2">
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:choose>
|
|
Packit Service |
6d40f9 |
<xsl:when test="count($prev) > 0">
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:attribute name="href">
|
|
Packit Service |
6d40f9 |
<xsl:call-template name="href.target">
|
|
Packit Service |
6d40f9 |
<xsl:with-param name="object" select="$prev"/>
|
|
Packit Service |
6d40f9 |
</xsl:call-template>
|
|
Packit Service |
6d40f9 |
</xsl:attribute>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:attribute name="alt">
|
|
Packit Service |
6d40f9 |
<xsl:call-template name="gentext">
|
|
Packit Service |
6d40f9 |
<xsl:with-param name="key">nav-prev</xsl:with-param>
|
|
Packit Service |
6d40f9 |
</xsl:call-template>
|
|
Packit Service |
6d40f9 |
</xsl:attribute>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
</xsl:when>
|
|
Packit Service |
6d40f9 |
<xsl:otherwise>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
</xsl:otherwise>
|
|
Packit Service |
6d40f9 |
</xsl:choose>
|
|
Packit Service |
6d40f9 |
<xsl:choose>
|
|
Packit Service |
6d40f9 |
<xsl:when test="count($up) > 0 and $up != $home">
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:attribute name="href">
|
|
Packit Service |
6d40f9 |
<xsl:call-template name="href.target">
|
|
Packit Service |
6d40f9 |
<xsl:with-param name="object" select="$up"/>
|
|
Packit Service |
6d40f9 |
</xsl:call-template>
|
|
Packit Service |
6d40f9 |
</xsl:attribute>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:attribute name="alt">
|
|
Packit Service |
6d40f9 |
<xsl:call-template name="gentext">
|
|
Packit Service |
6d40f9 |
<xsl:with-param name="key">nav-up</xsl:with-param>
|
|
Packit Service |
6d40f9 |
</xsl:call-template>
|
|
Packit Service |
6d40f9 |
</xsl:attribute>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
</xsl:when>
|
|
Packit Service |
6d40f9 |
<xsl:otherwise>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
</xsl:otherwise>
|
|
Packit Service |
6d40f9 |
</xsl:choose>
|
|
Packit Service |
6d40f9 |
<xsl:choose>
|
|
Packit Service |
6d40f9 |
<xsl:when test="$home != .">
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:attribute name="href">
|
|
Packit Service |
6d40f9 |
<xsl:call-template name="href.target">
|
|
Packit Service |
6d40f9 |
<xsl:with-param name="object" select="$home"/>
|
|
Packit Service |
6d40f9 |
</xsl:call-template>
|
|
Packit Service |
6d40f9 |
</xsl:attribute>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:attribute name="alt">
|
|
Packit Service |
6d40f9 |
<xsl:call-template name="gentext">
|
|
Packit Service |
6d40f9 |
<xsl:with-param name="key">nav-home</xsl:with-param>
|
|
Packit Service |
6d40f9 |
</xsl:call-template>
|
|
Packit Service |
6d40f9 |
</xsl:attribute>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
</xsl:when>
|
|
Packit Service |
6d40f9 |
<xsl:otherwise>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
</xsl:otherwise>
|
|
Packit Service |
6d40f9 |
</xsl:choose>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:apply-templates select="$home" mode="object.title.markup"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:choose>
|
|
Packit Service |
6d40f9 |
<xsl:when test="count($next) > 0">
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:attribute name="href">
|
|
Packit Service |
6d40f9 |
<xsl:call-template name="href.target">
|
|
Packit Service |
6d40f9 |
<xsl:with-param name="object" select="$next"/>
|
|
Packit Service |
6d40f9 |
</xsl:call-template>
|
|
Packit Service |
6d40f9 |
</xsl:attribute>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:attribute name="alt">
|
|
Packit Service |
6d40f9 |
<xsl:call-template name="gentext">
|
|
Packit Service |
6d40f9 |
<xsl:with-param name="key">nav-next</xsl:with-param>
|
|
Packit Service |
6d40f9 |
</xsl:call-template>
|
|
Packit Service |
6d40f9 |
</xsl:attribute>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
</xsl:when>
|
|
Packit Service |
6d40f9 |
<xsl:otherwise>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
</xsl:otherwise>
|
|
Packit Service |
6d40f9 |
</xsl:choose>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:choose>
|
|
Packit Service |
6d40f9 |
<xsl:when test="count($refsections) > 0">
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:if test="count($sect_synopsis) > 0">
|
|
Packit Service |
6d40f9 |
Top
|
|
Packit Service |
6d40f9 |
</xsl:if>
|
|
Packit Service |
6d40f9 |
<xsl:if test="count($sect_desc) > 0">
|
|
Packit Service |
6d40f9 |
|
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:value-of select="./refsect1[@role='desc']/title"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
</xsl:if>
|
|
Packit Service |
6d40f9 |
<xsl:if test="count($sect_object_hierarchy) > 0">
|
|
Packit Service |
6d40f9 |
|
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:value-of select="./refsect1[@role='object_hierarchy']/title"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
</xsl:if>
|
|
Packit Service |
6d40f9 |
<xsl:if test="count($sect_impl_interfaces) > 0">
|
|
Packit Service |
6d40f9 |
|
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:value-of select="./refsect1[@role='impl_interfaces']/title"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
</xsl:if>
|
|
Packit Service |
6d40f9 |
<xsl:if test="count($sect_prerequisites) > 0">
|
|
Packit Service |
6d40f9 |
|
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:value-of select="./refsect1[@role='prerequisites']/title"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
</xsl:if>
|
|
Packit Service |
6d40f9 |
<xsl:if test="count($sect_derived_interfaces) > 0">
|
|
Packit Service |
6d40f9 |
|
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:value-of select="./refsect1[@role='derived_interfaces']/title"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
</xsl:if>
|
|
Packit Service |
6d40f9 |
<xsl:if test="count($sect_implementations) > 0">
|
|
Packit Service |
6d40f9 |
|
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:value-of select="./refsect1[@role='implementations']/title"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
</xsl:if>
|
|
Packit Service |
6d40f9 |
<xsl:if test="count($sect_properties) > 0">
|
|
Packit Service |
6d40f9 |
|
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:value-of select="./refsect1[@role='properties']/title"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
</xsl:if>
|
|
Packit Service |
6d40f9 |
<xsl:if test="count($sect_child_properties) > 0">
|
|
Packit Service |
6d40f9 |
|
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:value-of select="./refsect1[@role='child_properties']/title"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
</xsl:if>
|
|
Packit Service |
6d40f9 |
<xsl:if test="count($sect_style_properties) > 0">
|
|
Packit Service |
6d40f9 |
|
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:value-of select="./refsect1[@role='style_properties']/title"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
</xsl:if>
|
|
Packit Service |
6d40f9 |
<xsl:if test="count($sect_signal_proto) > 0">
|
|
Packit Service |
6d40f9 |
|
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:value-of select="./refsect1[@role='signal_proto']/title"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
</xsl:if>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:if test="count($sect_details) > 0">
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:value-of select="./refsect1[@id='details']/title"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
|
Packit Service |
6d40f9 |
</xsl:if>
|
|
Packit Service |
6d40f9 |
<xsl:if test="count($sect_property_details) > 0">
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:value-of select="./refsect1[@id='property_details']/title"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
|
Packit Service |
6d40f9 |
</xsl:if>
|
|
Packit Service |
6d40f9 |
<xsl:if test="count($sect_child_property_details) > 0">
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:value-of select="./refsect1[@id='property_child_details']/title"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
|
Packit Service |
6d40f9 |
</xsl:if>
|
|
Packit Service |
6d40f9 |
<xsl:if test="count($sect_style_property_details) > 0">
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:value-of select="./refsect1[@id='style_property_details']/title"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
|
Packit Service |
6d40f9 |
</xsl:if>
|
|
Packit Service |
6d40f9 |
<xsl:if test="count($sect_signals) > 0">
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:value-of select="./refsect1[@id='signals']/title"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
|
Packit Service |
6d40f9 |
</xsl:if>
|
|
Packit Service |
6d40f9 |
-->
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
</xsl:when>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
elements having a anchor element. maybe we can customize the xsl
|
|
Packit Service |
6d40f9 |
to automaticaly create local anchors
|
|
Packit Service |
6d40f9 |
-->
|
|
Packit Service |
6d40f9 |
<xsl:when test="count($glssections) > 0">
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:for-each select="./glossdiv">
|
|
Packit Service |
6d40f9 |
<xsl:if test="position() > 1">
|
|
Packit Service |
6d40f9 |
|
|
|
Packit Service |
6d40f9 |
</xsl:if>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:attribute name="href">#gls<xsl:value-of select="./title"/></xsl:attribute>
|
|
Packit Service |
6d40f9 |
<xsl:value-of select="./title"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
</xsl:for-each>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
</xsl:when>
|
|
Packit Service |
6d40f9 |
<xsl:when test="count($idxsections) > 0">
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:for-each select="./indexdiv/indexdiv">
|
|
Packit Service |
6d40f9 |
<xsl:if test="position() > 1">
|
|
Packit Service |
6d40f9 |
|
|
|
Packit Service |
6d40f9 |
</xsl:if>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:attribute name="href">#idx<xsl:value-of select="./title"/></xsl:attribute>
|
|
Packit Service |
6d40f9 |
<xsl:value-of select="./title"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
</xsl:for-each>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
</xsl:when>
|
|
Packit Service |
6d40f9 |
</xsl:choose>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
</xsl:if>
|
|
Packit Service |
6d40f9 |
</xsl:template>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:template name="footer.navigation">
|
|
Packit Service |
6d40f9 |
</xsl:template>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
if the stylesheets don't support filtered indices
|
|
Packit Service |
6d40f9 |
-->
|
|
Packit Service |
6d40f9 |
<xsl:template match="index">
|
|
Packit Service |
6d40f9 |
<xsl:variable name="has-filtered-index">
|
|
Packit Service |
6d40f9 |
<xsl:call-template name="version-greater-or-equal">
|
|
Packit Service |
6d40f9 |
<xsl:with-param name="ver1" select="$VERSION" />
|
|
Packit Service |
6d40f9 |
<xsl:with-param name="ver2">1.66</xsl:with-param>
|
|
Packit Service |
6d40f9 |
</xsl:call-template>
|
|
Packit Service |
6d40f9 |
</xsl:variable>
|
|
Packit Service |
6d40f9 |
<xsl:if test="($has-filtered-index = 1) or (count(@role) = 0)">
|
|
Packit Service |
6d40f9 |
<xsl:apply-imports/>
|
|
Packit Service |
6d40f9 |
</xsl:if>
|
|
Packit Service |
6d40f9 |
</xsl:template>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:template match="index" mode="toc">
|
|
Packit Service |
6d40f9 |
<xsl:variable name="has-filtered-index">
|
|
Packit Service |
6d40f9 |
<xsl:call-template name="version-greater-or-equal">
|
|
Packit Service |
6d40f9 |
<xsl:with-param name="ver1" select="$VERSION" />
|
|
Packit Service |
6d40f9 |
<xsl:with-param name="ver2">1.66</xsl:with-param>
|
|
Packit Service |
6d40f9 |
</xsl:call-template>
|
|
Packit Service |
6d40f9 |
</xsl:variable>
|
|
Packit Service |
6d40f9 |
<xsl:if test="($has-filtered-index = 1) or (count(@role) = 0)">
|
|
Packit Service |
6d40f9 |
<xsl:apply-imports/>
|
|
Packit Service |
6d40f9 |
</xsl:if>
|
|
Packit Service |
6d40f9 |
</xsl:template>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:template match="para">
|
|
Packit Service |
6d40f9 |
<xsl:choose>
|
|
Packit Service |
6d40f9 |
<xsl:when test="@role = 'gallery'">
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:apply-templates mode="gallery.mode"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
</xsl:when>
|
|
Packit Service |
6d40f9 |
<xsl:otherwise>
|
|
Packit Service |
6d40f9 |
<xsl:apply-imports/>
|
|
Packit Service |
6d40f9 |
</xsl:otherwise>
|
|
Packit Service |
6d40f9 |
</xsl:choose>
|
|
Packit Service |
6d40f9 |
</xsl:template>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:apply-templates mode="gallery.mode"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
</xsl:template-->
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:template match="link" mode="gallery.mode">
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:apply-templates select="."/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
</xsl:template>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:template match="refnamediv">
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:call-template name="anchor"/>
|
|
Packit Service |
6d40f9 |
<xsl:choose>
|
|
Packit Service |
6d40f9 |
<xsl:when test="$refentry.generate.name != 0">
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:call-template name="gentext">
|
|
Packit Service |
6d40f9 |
<xsl:with-param name="key" select="'RefName'"/>
|
|
Packit Service |
6d40f9 |
</xsl:call-template>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
</xsl:when>
|
|
Packit Service |
6d40f9 |
<xsl:when test="$refentry.generate.title != 0">
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:choose>
|
|
Packit Service |
6d40f9 |
<xsl:when test="../refmeta/refentrytitle">
|
|
Packit Service |
6d40f9 |
<xsl:apply-templates select="../refmeta/refentrytitle"/>
|
|
Packit Service |
6d40f9 |
</xsl:when>
|
|
Packit Service |
6d40f9 |
<xsl:otherwise>
|
|
Packit Service |
6d40f9 |
<xsl:apply-templates select="refname[1]"/>
|
|
Packit Service |
6d40f9 |
</xsl:otherwise>
|
|
Packit Service |
6d40f9 |
</xsl:choose>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
</xsl:when>
|
|
Packit Service |
6d40f9 |
</xsl:choose>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:apply-templates/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:choose>
|
|
Packit Service |
6d40f9 |
<xsl:when test="../refmeta/refmiscinfo/inlinegraphic">
|
|
Packit Service |
6d40f9 |
<xsl:apply-templates select="../refmeta/refmiscinfo/inlinegraphic"/>
|
|
Packit Service |
6d40f9 |
</xsl:when>
|
|
Packit Service |
6d40f9 |
<xsl:otherwise>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
- determine the id of the enclosing refentry
|
|
Packit Service |
6d40f9 |
- look for an inlinegraphic inside a link with linkend == refentryid inside a para with role == gallery
|
|
Packit Service |
6d40f9 |
- use it here
|
|
Packit Service |
6d40f9 |
-->
|
|
Packit Service |
6d40f9 |
<xsl:variable name="refentryid" select="../@id"/>
|
|
Packit Service |
6d40f9 |
<xsl:apply-templates select="key('gallery.key', $refentryid)/inlinegraphic"/>
|
|
Packit Service |
6d40f9 |
</xsl:otherwise>
|
|
Packit Service |
6d40f9 |
</xsl:choose>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
</xsl:template>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:template match="indexdiv">
|
|
Packit Service |
6d40f9 |
<xsl:attribute name="name">idx<xsl:value-of select="./title"/></xsl:attribute>
|
|
Packit Service |
6d40f9 |
<xsl:apply-templates/>
|
|
Packit Service |
6d40f9 |
</xsl:template>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:template match="glossdiv">
|
|
Packit Service |
6d40f9 |
<xsl:attribute name="name">gls<xsl:value-of select="./title"/></xsl:attribute>
|
|
Packit Service |
6d40f9 |
<xsl:apply-templates/>
|
|
Packit Service |
6d40f9 |
</xsl:template>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:template match="indexterm">
|
|
Packit Service |
6d40f9 |
</xsl:template>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:template name="user.format.extralinks">
|
|
Packit Service |
6d40f9 |
<xsl:if test="../ulink[@role='extralinks']">
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:for-each select="../ulink[@role='extralinks']">
|
|
Packit Service |
6d40f9 |
<xsl:if test="position() = 1">[ </xsl:if>
|
|
Packit Service |
6d40f9 |
<xsl:if test="position() > 1"> | </xsl:if>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:attribute name="href"><xsl:value-of select="@url"/></xsl:attribute>
|
|
Packit Service |
6d40f9 |
<xsl:copy-of select="text()" />
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:if test="position() = last()"> ]</xsl:if>
|
|
Packit Service |
6d40f9 |
</xsl:for-each>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
</xsl:if>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:apply-templates/>
|
|
Packit Service |
6d40f9 |
</xsl:template>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:template match="//refsect2/ulink[@role='extralinks']"/>
|
|
Packit Service |
6d40f9 |
<xsl:template match="//refsect1/ulink[@role='extralinks']"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:template match="//refsect2/title">
|
|
Packit Service |
6d40f9 |
<xsl:call-template name="user.format.extralinks"/>
|
|
Packit Service |
6d40f9 |
</xsl:template>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:template match="//refsect1/title">
|
|
Packit Service |
6d40f9 |
<xsl:call-template name="user.format.extralinks"/>
|
|
Packit Service |
6d40f9 |
</xsl:template>
|
|
Packit Service |
6d40f9 |
-->
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:template match="acronym">
|
|
Packit Service |
6d40f9 |
<xsl:call-template name="generate.acronym.link"/>
|
|
Packit Service |
6d40f9 |
</xsl:template>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:template name="generate.acronym.link">
|
|
Packit Service |
6d40f9 |
<xsl:param name="acronym">
|
|
Packit Service |
6d40f9 |
<xsl:apply-templates/>
|
|
Packit Service |
6d40f9 |
</xsl:param>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
We use for-each to change context to the database document because key()
|
|
Packit Service |
6d40f9 |
only locates elements in the same document as the context node!
|
|
Packit Service |
6d40f9 |
-->
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:param name="value" >
|
|
Packit Service |
6d40f9 |
<xsl:value-of select="key('acronym.key', $acronym)/../glossdef/para[1]" />
|
|
Packit Service |
6d40f9 |
</xsl:param>
|
|
Packit Service |
6d40f9 |
<xsl:choose>
|
|
Packit Service |
6d40f9 |
<xsl:when test="$value=''">
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:message>
|
|
Packit Service |
6d40f9 |
In gtk-doc.xsl: For acronym (<xsl:value-of select="$acronym"/>) no value found!
|
|
Packit Service |
6d40f9 |
</xsl:message>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:attribute name="href">
|
|
Packit Service |
6d40f9 |
<xsl:text>http://foldoc.org/</xsl:text>
|
|
Packit Service |
6d40f9 |
<xsl:value-of select="$acronym"/>
|
|
Packit Service |
6d40f9 |
</xsl:attribute>
|
|
Packit Service |
6d40f9 |
<xsl:call-template name="inline.charseq"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
</xsl:when>
|
|
Packit Service |
6d40f9 |
<xsl:otherwise>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
<xsl:attribute name="title">
|
|
Packit Service |
6d40f9 |
<xsl:value-of select="$value"/>
|
|
Packit Service |
6d40f9 |
</xsl:attribute>
|
|
Packit Service |
6d40f9 |
<xsl:call-template name="inline.charseq"/>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
</xsl:otherwise>
|
|
Packit Service |
6d40f9 |
</xsl:choose>
|
|
Packit Service |
6d40f9 |
</xsl:template>
|
|
Packit Service |
6d40f9 |
|
|
Packit Service |
6d40f9 |
</xsl:stylesheet>
|