summaryrefslogtreecommitdiff
path: root/officecfg/util/schema_val.xsl
diff options
context:
space:
mode:
authorDirk Grobler <dg@openoffice.org>2002-05-20 10:47:24 +0000
committerDirk Grobler <dg@openoffice.org>2002-05-20 10:47:24 +0000
commit7e666de63aeb481a4396867dd913ca1886955565 (patch)
tree02d2bcbdf962a1b70519bba3b6a6eb140d0b8e02 /officecfg/util/schema_val.xsl
parent0cb100c58234953f7b6f5898ac450c683fd69469 (diff)
#99152# Validation improved
Diffstat (limited to 'officecfg/util/schema_val.xsl')
-rw-r--r--officecfg/util/schema_val.xsl11
1 files changed, 9 insertions, 2 deletions
diff --git a/officecfg/util/schema_val.xsl b/officecfg/util/schema_val.xsl
index 4def95da44e8..2ba977ca4a36 100644
--- a/officecfg/util/schema_val.xsl
+++ b/officecfg/util/schema_val.xsl
@@ -3,9 +3,9 @@
*
* $RCSfile: schema_val.xsl,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: dg $ $Date: 2002-05-19 23:31:14 $
+ * last change: $Author: dg $ $Date: 2002-05-20 11:47:24 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -93,6 +93,13 @@
</xsl:if>
</xsl:template>
+<!-- check if properties of type 'any' do not have a value -->
+ <xsl:template match="prop[@oor:type='oor:any']">
+ <xsl:if test="count(value)">
+ <xsl:message terminate="yes">ERROR: Properties of type 'oor:any' MUST NOT have a value!</xsl:message>
+ </xsl:if>
+ </xsl:template>
+
<!-- validate for correct node references -->
<xsl:template match="@oor:node-type">
<xsl:choose>