diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2016-10-01 13:47:27 +0200 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2016-10-03 11:33:47 +0100 |
commit | f3549401113b151633779b1a3df8aaaa6186e6c8 (patch) | |
tree | 0d43050feb1a5f42fc3db549e387ff16483f8835 /doc/introspect.xsl | |
parent | 699fbe8df6ae7578b50aa59ae3ebf17ed324966b (diff) | |
download | dbus-f3549401113b151633779b1a3df8aaaa6186e6c8.tar.gz |
spec: Allow <annotation> in <arg> elements in introspection XML
This is widely used in practice (especially by GLib — just look at files
in /usr/share/dbus-1/interfaces/), and there is no reason not to allow
it. Update the specification, introspection DTD and XSL file to allow
and represent it.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=86162
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Diffstat (limited to 'doc/introspect.xsl')
-rw-r--r-- | doc/introspect.xsl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/introspect.xsl b/doc/introspect.xsl index 52604a5c..89b68441 100644 --- a/doc/introspect.xsl +++ b/doc/introspect.xsl @@ -80,6 +80,12 @@ <span class="type"><xsl:value-of select="@type"/></span><xsl:text> </xsl:text> <span class="symbol"><xsl:value-of select="@name"/></span><xsl:text> </xsl:text> + + <xsl:if test="annotation"> + <ul> + <xsl:apply-templates select="annotation"/> + </ul> + </xsl:if> </li> </xsl:for-each> </ul> |