summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2008-07-01 13:26:02 +0000
committerMarc-André Lureau <marcandre.lureau@gmail.com>2009-02-13 00:01:43 +0200
commit18a6a65ca2bfcbef69aea57fbdec8fd68b5be04c (patch)
tree2664016714ed407838e2b5efbb56310ef151d173 /tools
parent5dff30ce4162d493e9f580249a2057c4579e73a4 (diff)
doc-generator.xsl: fail if a property has no access attribute
Diffstat (limited to 'tools')
-rw-r--r--tools/doc-generator.xsl10
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/doc-generator.xsl b/tools/doc-generator.xsl
index 330c0cf..c6e5358 100644
--- a/tools/doc-generator.xsl
+++ b/tools/doc-generator.xsl
@@ -423,8 +423,14 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
<xsl:text>read/write</xsl:text>
</xsl:when>
<xsl:otherwise>
- <xsl:text>access: </xsl:text>
- <code><xsl:value-of select="@access"/></code>
+ <xsl:message terminate="yes">
+ <xsl:text>ERR: unknown or missing value for </xsl:text>
+ <xsl:text>@access on property </xsl:text>
+ <xsl:value-of select="concat(../@name, '.', @name)"/>
+ <xsl:text>: '</xsl:text>
+ <xsl:value-of select="@access"/>
+ <xsl:text>'&#10;</xsl:text>
+ </xsl:message>
</xsl:otherwise>
</xsl:choose>
</dt>