Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Add a test for mdrpi:RegistrationInfo/@registrationInstant being in U…
Browse files Browse the repository at this point in the history
…TC, i.e., ending with 'Z'.
  • Loading branch information
iay committed Apr 23, 2014
1 parent 0668f3b commit a225e0c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions mdx/_rules/check_mdrpi.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,21 @@
</xsl:call-template>
</xsl:template>

<!--
Section 2.1.1
registrationInstant values MUST be expressed in the UTC timezone using the 'Z' timezone identifier.
-->
<xsl:template match="mdrpi:RegistrationInfo[@registrationInstant]
[substring(@registrationInstant, string-length(@registrationInstant)) != 'Z']">
<xsl:call-template name="error">
<xsl:with-param name="m">
<xsl:text>registrationInstant does not end with 'Z': </xsl:text>
<xsl:value-of select="@registrationInstant"/>
</xsl:with-param>
</xsl:call-template>
</xsl:template>

<!--
Section 2.1.1
Expand Down

0 comments on commit a225e0c

Please sign in to comment.