Skip to content

Commit

Permalink
Check for empty xml:lang attributes as generated by OIOSAML.
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Feb 12, 2010
1 parent efa0be2 commit 87a7cdc
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
14 changes: 14 additions & 0 deletions build/check.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,20 @@
<xsl:with-param name="m">Scope <xsl:value-of select="."/> lacks @regexp</xsl:with-param>
</xsl:call-template>
</xsl:template>


<!--
Check for empty xml:lang elements, automatically generated by OIOSAML.
This is not schema-valid so would be caught further down the line anyway,
but it's nice to have a clear error message earlier in the process.
-->
<xsl:template match="@xml:lang[.='']">
<xsl:call-template name="fatal">
<xsl:with-param name="m">empty xml:lang attribute</xsl:with-param>
</xsl:call-template>
</xsl:template>



<!--
Expand Down
13 changes: 13 additions & 0 deletions build/check_imported.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,19 @@
</xsl:template>


<!--
Check for empty xml:lang elements, automatically generated by OIOSAML.
This is not schema-valid so would be caught further down the line anyway,
but it's nice to have a clear error message earlier in the process.
-->
<xsl:template match="@xml:lang[.='']">
<xsl:call-template name="fatal">
<xsl:with-param name="m">empty xml:lang attribute</xsl:with-param>
</xsl:call-template>
</xsl:template>


<!--
Common template to call to report a fatal error on some element within an entity.
-->
Expand Down

0 comments on commit 87a7cdc

Please sign in to comment.