summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/doc-generator.xsl28
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>&#10;</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>&#10;</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>&#10;</xsl:text>
+ </xsl:message>
</xsl:if>
</xsl:template>