mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-04-09 08:21:30 -04:00
doc: Mostly use apply-templates over value-of
xsl:value-of would strip all the nested markup of the selected doxygen elements, so that \ref, \sa and \code formatting didn't actually work. Signed-off-by: Benjamin Herr <ben@0x539.de>
This commit is contained in:
parent
5b353ad44d
commit
6b511090c5
1 changed files with 14 additions and 16 deletions
|
|
@ -42,11 +42,11 @@
|
||||||
<xsl:template match="parameteritem">
|
<xsl:template match="parameteritem">
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
<xsl:value-of select="parameternamelist/parametername"/>
|
<xsl:apply-templates select="parameternamelist/parametername"/>
|
||||||
</term>
|
</term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
<xsl:value-of select="parameterdescription/para"/>
|
<xsl:apply-templates select="parameterdescription/para"/>
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
@ -61,7 +61,7 @@
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="ref">
|
<xsl:template match="ref">
|
||||||
<emphasis><xsl:value-of select="." /></emphasis>
|
<emphasis><xsl:apply-templates /></emphasis>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="simplesect[@kind='return']">
|
<xsl:template match="simplesect[@kind='return']">
|
||||||
|
|
@ -70,7 +70,7 @@
|
||||||
<term>Returns:</term>
|
<term>Returns:</term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
<xsl:value-of select="." />
|
<xsl:apply-templates />
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
@ -83,7 +83,7 @@
|
||||||
<para>
|
<para>
|
||||||
See also:
|
See also:
|
||||||
<xsl:for-each select="para/ref">
|
<xsl:for-each select="para/ref">
|
||||||
<emphasis><xsl:value-of select="."/><xsl:text> </xsl:text></emphasis>
|
<emphasis><xsl:apply-templates /><xsl:text> </xsl:text></emphasis>
|
||||||
</xsl:for-each>
|
</xsl:for-each>
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
@ -94,18 +94,18 @@
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
Since: <xsl:value-of select="para"/>
|
Since: <xsl:apply-templates select="para"/>
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="simplesect[@kind='note']">
|
<xsl:template match="simplesect[@kind='note']">
|
||||||
<emphasis>Note: <xsl:value-of select="."/></emphasis>
|
<emphasis>Note: <xsl:apply-templates /></emphasis>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="programlisting">
|
<xsl:template match="programlisting">
|
||||||
<programlisting><xsl:value-of select="."/></programlisting>
|
<programlisting><xsl:apply-templates /></programlisting>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- this opens a para for each detaileddescription/para. I could not find a
|
<!-- this opens a para for each detaileddescription/para. I could not find a
|
||||||
|
|
@ -129,13 +129,13 @@
|
||||||
<xsl:if test="@kind = 'function' and @static = 'no'">
|
<xsl:if test="@kind = 'function' and @static = 'no'">
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
<xsl:value-of select="name"/>
|
<xsl:apply-templates select="name"/>
|
||||||
- <xsl:value-of select="briefdescription" />
|
- <xsl:apply-templates select="briefdescription" />
|
||||||
</term>
|
</term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
<synopsis>
|
<synopsis>
|
||||||
<xsl:value-of select="definition"/><xsl:value-of select="argsstring"/>
|
<xsl:apply-templates select="definition"/><xsl:apply-templates select="argsstring"/>
|
||||||
</synopsis>
|
</synopsis>
|
||||||
</para>
|
</para>
|
||||||
<xsl:apply-templates select="detaileddescription" />
|
<xsl:apply-templates select="detaileddescription" />
|
||||||
|
|
@ -149,16 +149,14 @@
|
||||||
<xsl:if test="@kind = 'class' ">
|
<xsl:if test="@kind = 'class' ">
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
<xsl:value-of select="compoundname" />
|
<xsl:apply-templates select="compoundname" />
|
||||||
<xsl:if test="briefdescription">
|
<xsl:if test="briefdescription">
|
||||||
- <xsl:value-of select="briefdescription" />
|
- <xsl:apply-templates select="briefdescription" />
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</term>
|
</term>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<xsl:for-each select="detaileddescription/para">
|
<xsl:apply-templates select="detaileddescription/para" />
|
||||||
<para><xsl:value-of select="." /></para>
|
|
||||||
</xsl:for-each>
|
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue