summaryrefslogtreecommitdiff
path: root/tools/doc-generator.xsl
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2008-04-07 16:43:34 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2008-04-07 16:43:34 +0000
commitb16950216854fd481e40b142fc9d8bfeb62fcea8 (patch)
tree82dcab720f1ac06ea40d224d2aa3a676d027436e /tools/doc-generator.xsl
parente53b271c769c150790f8c2cb3f30d792b4f6aa40 (diff)
downloadtelepathy-glib-b16950216854fd481e40b142fc9d8bfeb62fcea8.tar.gz
Update doc-generator.xsl from Telepathy spec
20080407164334-53eee-86fa0d059e54248bfc177c5e626570786525f381.gz
Diffstat (limited to 'tools/doc-generator.xsl')
-rw-r--r--tools/doc-generator.xsl11
1 files changed, 8 insertions, 3 deletions
diff --git a/tools/doc-generator.xsl b/tools/doc-generator.xsl
index 8fd4dd3a4..a820e46d8 100644
--- a/tools/doc-generator.xsl
+++ b/tools/doc-generator.xsl
@@ -40,11 +40,10 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
</xsl:template>
<xsl:template match="tp:docstring">
- <xsl:apply-templates select="text() | html:*" mode="html"/>
- <xsl:apply-templates select="tp:rationale"/>
+ <xsl:apply-templates select="text() | html:* | tp:rationale" mode="html"/>
</xsl:template>
- <xsl:template match="tp:rationale">
+ <xsl:template match="tp:rationale" mode="html">
<div xmlns="http://www.w3.org/1999/xhtml" class="rationale">
<xsl:apply-templates select="node()" mode="html"/>
</div>
@@ -310,6 +309,11 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
</h3>
<div class="docstring">
<xsl:apply-templates select="tp:docstring"/>
+ <xsl:if test="string(@array-name) != ''">
+ <p>In bindings that need a separate name, arrays of
+ <xsl:value-of select="@name"/> should be called
+ <xsl:value-of select="@array-name"/>.</p>
+ </xsl:if>
</div>
<div>
<h4>Members</h4>
@@ -476,6 +480,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
<xsl:when test="//tp:simple-type[@name=$tp-type]" />
<xsl:when test="//tp:simple-type[concat(@name, '[]')=$tp-type]" />
<xsl:when test="//tp:struct[concat(@name, '[]')=$tp-type][string(@array-name) != '']" />
+ <xsl:when test="//tp:mapping[concat(@name, '[]')=$tp-type][string(@array-name) != '']" />
<xsl:when test="//tp:struct[@name=$tp-type]" />
<xsl:when test="//tp:enum[@name=$tp-type]" />
<xsl:when test="//tp:enum[concat(@name, '[]')=$tp-type]" />