Skip to content

Commit

Permalink
Check for misspelled mdui container elements, e.g., UInfo instead of …
Browse files Browse the repository at this point in the history
…UIInfo.
  • Loading branch information
iay committed Nov 12, 2010
1 parent 9def8dc commit 769f118
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions build/check_mdui.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,22 @@
<xsl:with-param name="m">more than one UIInfo element in one Extensions element</xsl:with-param>
</xsl:call-template>
</xsl:template>

<!--
Section 2.1
Restrict the elements in this namespace which can appear directly within md:Extensions
to the two defined container elements. This will catch mis-spelled containers.
-->
<xsl:template match="md:Extensions/mdui:*
[not(local-name()='UIInfo')][not(local-name()='DiscoHints')]">
<xsl:call-template name="fatal">
<xsl:with-param name="m">
<xsl:text>misspelled or misplaced mdui element within md:Extensions: </xsl:text>
<xsl:value-of select="local-name()"/>
</xsl:with-param>
</xsl:call-template>
</xsl:template>

<!--
Section 2.1
Expand Down

0 comments on commit 769f118

Please sign in to comment.