Skip to content

Commit

Permalink
Future registrar test: ensure that if there is MDUI metadata, it incl…
Browse files Browse the repository at this point in the history
…udes a DisplayName.
  • Loading branch information
iay committed Jun 18, 2013
1 parent dbad213 commit a58f00d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions mdx/_rules/check_future_1.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,17 @@
-->
<xsl:import href="check_framework.xsl"/>

<!--
If an entity has mdui:UIInfo, then that must include at least an
mdui:DisplayName with an English name.
-->
<xsl:template match="mdui:UIInfo[not(mdui:DisplayName[@xml:lang='en'])]">
<xsl:call-template name="error">
<xsl:with-param name="m">
<xsl:text>mdui:UIInfo with no xml:lang='en' DisplayName</xsl:text>
</xsl:with-param>
</xsl:call-template>

</xsl:template>

</xsl:stylesheet>

0 comments on commit a58f00d

Please sign in to comment.