[Telepathy-commits] [telepathy-spec/master] doc-generator.xsl: make tp:name-for-bindings mandatory

Simon McVittie simon.mcvittie at collabora.co.uk
Tue Sep 9 07:09:12 PDT 2008


---
 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>&#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>
 
-- 
1.5.6.3




More information about the Telepathy-commits mailing list