summaryrefslogtreecommitdiff
path: root/officecfg/util/sanity.xsl
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2003-03-26 12:59:19 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2003-03-26 12:59:19 +0000
commit5db03f52d7857c98fc55a6ec9bc6f12125a53dc8 (patch)
tree0b5b2ca22126c24b98cf17f9dcfbd8e1c3ea02c5 /officecfg/util/sanity.xsl
parent61bb4875c0b442030b649d9be22a724af17b8b4b (diff)
MWS_SRX644: migrate branch mws_srx644 -> HEAD
Diffstat (limited to 'officecfg/util/sanity.xsl')
-rw-r--r--officecfg/util/sanity.xsl12
1 files changed, 5 insertions, 7 deletions
diff --git a/officecfg/util/sanity.xsl b/officecfg/util/sanity.xsl
index 13aa20a9d80d..995f90c9ef82 100644
--- a/officecfg/util/sanity.xsl
+++ b/officecfg/util/sanity.xsl
@@ -18,16 +18,15 @@
<!-- match all elements that could possibly contain info/desc elements -->
<xsl:template match="group|set|node-ref|prop|enumeration|length|minLength|maxLength|minInclusive|maxInclusive|minExclusive|maxExclusive|whiteSpace">
- <xsl:if test="not(info/desc)">
+ <xsl:if test="1>string-length(info/desc)">
<!-- print TPF's path to current node -->
<xsl:message terminate="yes">
<!-- print linefeed -->
<xsl:text>&#10;</xsl:text>
-
- <xsl:text>ERROR: No info/desc element specified</xsl:text>
-
- <!-- print linefeed -->
+ <xsl:text>ERROR: No info/desc element specified or string length of info/desc element is 0.</xsl:text>
+ <xsl:text>&#10;</xsl:text>
+ <xsl:text> There has to be a reasonable description to be specified for any item.</xsl:text>
<xsl:text>&#10;</xsl:text>
<xsl:text> - path: </xsl:text>
@@ -39,10 +38,9 @@
</xsl:choose>
</xsl:for-each>
- <!-- print linefeed -->
<xsl:text>&#10;</xsl:text>
-
<xsl:text> - author: </xsl:text>
+
<xsl:for-each select="ancestor-or-self::*">
<!-- print element name -->
<xsl:if test="info/author">