<xsl:iftest="following-sibling::value[@install:module=$module and @xml:lang=$lang]">
<xsl:messageterminate="yes">ERROR: Property '<xsl:value-ofselect="$path"/>' has multiple values for module <xsl:value-ofselect="$module"/> and locale <xsl:value-ofselect="$lang"/>!</xsl:message>
<xsl:message>ATTENTION: Property '<xsl:value-ofselect="$path"/>' has different values for different modules. Make sure the modules are mutually exclusive!</xsl:message>
<xsl:messageterminate="yes">ERROR: Property '<xsl:value-ofselect="$path"/>' has value for special xml:lang="x-no-translate" in module <xsl:value-ofselect="$module"/>.</xsl:message>
</xsl:if>
<xsl:choose>
<xsl:when
test="preceding-sibling::value[($lang and not(@xml:lang)) or (not($lang) and @xml:lang)]">
<xsl:messageterminate="yes">ERROR: Property '<xsl:value-ofselect="$path"/>' has values with and without xml:lang attributes.</xsl:message>
</xsl:when>
<xsl:when
test="preceding-sibling::value[((not($lang) and not(@xml:lang)) or $lang=@xml:lang) and ((not($module) and not(@install:module)) or $module=@install:module)]">
<xsl:messageterminate="yes">ERROR: Property '<xsl:value-ofselect="$path"/>' has values with matching xml:lang attribute <xsl:value-ofselect="$lang"/> and inconsistent install:module attributes.</xsl:message>
</xsl:when>
<xsl:when
test="preceding-sibling::value[((not($lang) and not(@xml:lang)) or $lang=@xml:lang) and (($module and not(@install:module)) or (not($module) and @install:module) or $module!=@install:module)]">
<xsl:message>ATTENTION: Property '<xsl:value-ofselect="$path"/>' has different values for different modules. Make sure the modules are mutually exclusive!</xsl:message>