summaryrefslogtreecommitdiff
path: root/officecfg/util
diff options
context:
space:
mode:
Diffstat (limited to 'officecfg/util')
-rw-r--r--officecfg/util/data_val.xsl15
1 files changed, 15 insertions, 0 deletions
diff --git a/officecfg/util/data_val.xsl b/officecfg/util/data_val.xsl
index abe7eb30090c..97508eb34a00 100644
--- a/officecfg/util/data_val.xsl
+++ b/officecfg/util/data_val.xsl
@@ -171,6 +171,14 @@
<xsl:message terminate="yes">ERROR: Property '<xsl:value-of select="$path"/>' has unexpected operation '<xsl:value-of select="@oor:op"/>' !</xsl:message>
</xsl:if>
+ <xsl:if test="not($context/@oor:localized='true')">
+ <xsl:for-each select="value">
+ <xsl:if test="@xml:lang">
+ <xsl:message terminate="yes">ERROR: Non-localized property '<xsl:value-of select="$path"/>' has value for xml:lang='<xsl:value-of select="@xml:lang"/>'!</xsl:message>
+ </xsl:if>
+ </xsl:for-each>
+ </xsl:if>
+
<xsl:call-template name="checkModule"/>
<xsl:call-template name="checkDuplicates"/>
@@ -237,6 +245,13 @@
</xsl:otherwise>
</xsl:choose>
+ <!-- Extension properties are always non-localized: -->
+ <xsl:for-each select="value">
+ <xsl:if test="@xml:lang">
+ <xsl:message terminate="yes">ERROR: Non-localized extension property '<xsl:value-of select="$path"/>' has value for xml:lang='<xsl:value-of select="@xml:lang"/>'!</xsl:message>
+ </xsl:if>
+ </xsl:for-each>
+
<xsl:call-template name="checkModule"/>
<xsl:call-template name="checkDuplicates"/>
</xsl:template>