Skip to content

Commit

Permalink
Enforce the MDUI spec's requirement that GeolocationHint values are R…
Browse files Browse the repository at this point in the history
…FC5870 "geo:" URIs.

Not a thorough test by any means: just look for "geo:" at the beginning for now.
  • Loading branch information
iay committed Sep 12, 2011
1 parent e17018c commit e132054
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions build/check_mdui.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,15 @@
</xsl:call-template>
</xsl:template>

<!--
Section 2.2.4
Coordinates are given in URI form using the geo URI scheme [RFC5870].
-->
<xsl:template match="mdui:GeolocationHint[not(starts-with(., 'geo:'))]">
<xsl:call-template name="error">
<xsl:with-param name="m">GeolocationHint must be RFC5870 URI starting with 'geo:'</xsl:with-param>
</xsl:call-template>
</xsl:template>

</xsl:stylesheet>

0 comments on commit e132054

Please sign in to comment.