summaryrefslogtreecommitdiff
path: root/gtk-doc.xsl
diff options
context:
space:
mode:
authorStefan Sauer <ensonic@users.sf.net>2015-07-01 18:12:36 +0200
committerStefan Sauer <ensonic@users.sf.net>2015-07-01 18:12:36 +0200
commitce8530d5f264589698efc708f2992b2e45df5347 (patch)
tree31872cb299651365f6f4fe7cb943c019c2c6a249 /gtk-doc.xsl
parent76fcc30f36dc6896c5742a0488ec057b706c4a72 (diff)
downloadgtk-doc-ce8530d5f264589698efc708f2992b2e45df5347.tar.gz
gtkdoc.xsl: formatting cleanup
Diffstat (limited to 'gtk-doc.xsl')
-rw-r--r--gtk-doc.xsl24
1 files changed, 5 insertions, 19 deletions
diff --git a/gtk-doc.xsl b/gtk-doc.xsl
index d7d69ab..7da5532 100644
--- a/gtk-doc.xsl
+++ b/gtk-doc.xsl
@@ -11,12 +11,8 @@
<xsl:include href="devhelp2.xsl"/>
<xsl:include href="version-greater-or-equal.xsl"/>
- <xsl:key name="acronym.key"
- match="glossentry/glossterm"
- use="."/>
- <xsl:key name="gallery.key"
- match="para[@role='gallery']/link"
- use="@linkend"/>
+ <xsl:key name="acronym.key" match="glossentry/glossterm" use="."/>
+ <xsl:key name="gallery.key" match="para[@role='gallery']/link" use="@linkend"/>
<!-- change some parameters -->
<!-- http://docbook.sourceforge.net/release/xsl/current/doc/html/index.html -->
@@ -74,12 +70,8 @@
<xsl:param name="gtkdoc.l10n.xml" select="document('http://docbook.sourceforge.net/release/xsl/current/common/en.xml')"/>
- <xsl:key name="gtkdoc.gentext.key"
- match="l:gentext[@key]"
- use="@key"/>
- <xsl:key name="gtkdoc.context.key"
- match="l:context[@name]"
- use="@name"/>
+ <xsl:key name="gtkdoc.gentext.key" match="l:gentext[@key]" use="@key"/>
+ <xsl:key name="gtkdoc.context.key" match="l:context[@name]" use="@name"/>
<xsl:template name="gentext">
<xsl:param name="key" select="local-name(.)"/>
@@ -256,7 +248,6 @@
</xsl:if>
</xsl:variable>
-
<xsl:variable name="is.title-unnumbered">
<xsl:if test="$is.title = 0 and $is.title-numbered = 0">
<xsl:call-template name="gentext.template.exists">
@@ -349,7 +340,7 @@ Get a newer version at http://docbook.sourceforge.net/projects/xsl/
<xsl:apply-imports/>
</xsl:template>
- <xsl:template name="user.head.title">
+ <xsl:template name="user.head.title">
<xsl:param name="node" select="."/>
<xsl:param name="title"/>
<xsl:variable name="home" select="/*[1]"/>
@@ -804,11 +795,6 @@ Get a newer version at http://docbook.sourceforge.net/projects/xsl/
<xsl:param name="acronym">
<xsl:apply-templates/>
</xsl:param>
- <!--
- We use for-each to change context to the database document because key()
- only locates elements in the same document as the context node!
- -->
-
<xsl:param name="value" >
<xsl:value-of select="key('acronym.key', $acronym)/../glossdef/para[1]" />
</xsl:param>