diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2008-09-09 15:09:12 +0100 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@gmail.com> | 2009-02-13 00:01:45 +0200 |
commit | be344e5addc6f1ab9ad90372dc84dbed9cebd17c (patch) | |
tree | 91d6e8ef0f3abacf82261ab3ecbec1b6ab427883 /tools | |
parent | 71e8c4a5f0bdfccc7c91603b47ddcccf1d43e87c (diff) |
doc-generator.xsl: make tp:name-for-bindings mandatory
Diffstat (limited to 'tools')
-rw-r--r-- | tools/doc-generator.xsl | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/tools/doc-generator.xsl b/tools/doc-generator.xsl index 73c4d80..f9630f8 100644 --- a/tools/doc-generator.xsl +++ b/tools/doc-generator.xsl @@ -418,16 +418,24 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA </xsl:template> <xsl:template name="binding-name-check"> - <xsl:if test="@tp:name-for-bindings"> - <xsl:if test="translate(@tp:name-for-bindings, '_', '') != @name"> - <xsl:message terminate="yes"> - <xsl:text>ERR: Binding name </xsl:text> - <xsl:value-of select="@tp:name-for-bindings"/> - <xsl:text> doesn't correspond to D-Bus name </xsl:text> - <xsl:value-of select="@name"/> - <xsl:text> </xsl:text> - </xsl:message> - </xsl:if> + <xsl:if test="not(@tp:name-for-bindings)"> + <xsl:message terminate="yes"> + <xsl:text>ERR: Binding name missing from </xsl:text> + <xsl:value-of select="parent::interface/@name"/> + <xsl:text>.</xsl:text> + <xsl:value-of select="@name"/> + <xsl:text> </xsl:text> + </xsl:message> + </xsl:if> + + <xsl:if test="translate(@tp:name-for-bindings, '_', '') != @name"> + <xsl:message terminate="yes"> + <xsl:text>ERR: Binding name </xsl:text> + <xsl:value-of select="@tp:name-for-bindings"/> + <xsl:text> doesn't correspond to D-Bus name </xsl:text> + <xsl:value-of select="@name"/> + <xsl:text> </xsl:text> + </xsl:message> </xsl:if> </xsl:template> |