Just to make it slightly shorter.
Also add a dash to the doxygen links to make them look a bit more alike.
Tested-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
</xsl:template>
<xsl:template match="ref">
- <link linkend="{$which}{@refid}"><xsl:value-of select="." /></link>
+ <link linkend="{$which}-{@refid}"><xsl:value-of select="." /></link>
</xsl:template>
<xsl:template match="simplesect[@kind='return']">
<!-- methods -->
<xsl:template match="memberdef" >
<xsl:if test="@kind = 'function' and @static = 'no'">
- <varlistentry id="{$which}{@id}">
+ <varlistentry id="{$which}-{@id}">
<term>
<xsl:value-of select="name"/>
<xsl:if test="normalize-space(briefdescription) != ''">
<!-- classes -->
<xsl:template match="compounddef" >
<xsl:if test="@kind = 'class'">
- <varlistentry id="{$which}{@id}">
+ <varlistentry id="{$which}-{@id}">
<term>
<xsl:value-of select="compoundname" />
<xsl:if test="normalize-space(briefdescription) != ''">
</para>
<para>
- Core interfaces:
- <variablelist>
- <xsl:apply-templates select="protocol/interface" />
- </variablelist>
+ Core interfaces:
+ <variablelist>
+ <xsl:apply-templates select="protocol/interface" />
+ </variablelist>
</para>
</section>
</xsl:template>
<xsl:template match="interface" >
<varlistentry>
<term>
- <link linkend="protocol-spec-interface-{@name}">
+ <link linkend="protocol-spec-{@name}">
<xsl:value-of select="@name" />
</link>
</term>
<!-- Interface descriptions -->
<xsl:template match="interface" >
- <section>
- <xsl:attribute name="id">protocol-spec-<xsl:value-of select="name()"/>-<xsl:value-of select="@name" />
- </xsl:attribute>
+ <section id="protocol-spec-{@name}">
<title>
<xsl:value-of select="@name" />
<!-- only show summary if it exists -->
<!-- Request/event list -->
<xsl:template match="request|event|enum">
- <section>
- <xsl:attribute name="id">protocol-spec-interface-<xsl:value-of select="../@name"/>-<xsl:value-of select="name()"/>-<xsl:value-of select="@name"/></xsl:attribute>
+ <section id="protocol-spec-{../@name}-{name()}-{@name}">
<title>
<xsl:value-of select="../@name"/>::<xsl:value-of select="@name" />
<xsl:if test="description/@summary">
The compositor is a global object, advertised at connect time.
</para>
<para>
- See <xref linkend="protocol-spec-interface-wl_compositor"/> for the
+ See <xref linkend="protocol-spec-wl_compositor"/> for the
protocol description.
</para>
</section>
cannot access other clients surfaces.
</para>
<para>
- See <xref linkend="protocol-spec-interface-wl_surface"/> for the protocol
+ See <xref linkend="protocol-spec-wl_surface"/> for the protocol
description.
</para>
</section>
or triple clicks.
</para>
<para>
- See <xref linkend="protocol-spec-interface-wl_seat"/> for the
+ See <xref linkend="protocol-spec-wl_seat"/> for the
protocol description.
</para>
<para>
comes and goes.
</para>
<para>
- See <xref linkend="protocol-spec-interface-wl_output"/> for the protocol
+ See <xref linkend="protocol-spec-wl_output"/> for the protocol
description.
</para>
<para>
that implements copy-paste and drag-and-drop support.
</para>
<para>
- See <xref linkend="protocol-spec-interface-wl_data_offer"/>,
- <xref linkend="protocol-spec-interface-wl_data_source"/>,
- <xref linkend="protocol-spec-interface-wl_data_device"/> and
- <xref linkend="protocol-spec-interface-wl_data_device_manager"/> for
+ See <xref linkend="protocol-spec-wl_data_offer"/>,
+ <xref linkend="protocol-spec-wl_data_source"/>,
+ <xref linkend="protocol-spec-wl_data_device"/> and
+ <xref linkend="protocol-spec-wl_data_device_manager"/> for
protocol descriptions.
</para>
<para>