Skip to content

Commit

Permalink
#5 EBA Filing Rules
Browse files Browse the repository at this point in the history
  • Loading branch information
John Nordberg committed Apr 28, 2024
1 parent b5299f1 commit 22bfcb2
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
7 changes: 7 additions & 0 deletions eba.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<xsl:output indent="yes" method="xml" omit-xml-declaration="yes" />
<xsl:variable name="eeacountrycodes" select="document('lookup/eea-countries.xml')/codes/code" />
<xsl:variable name="countrycodes" select="document('lookup/iso-3166-1.xml')/codes/code" />
<xsl:variable name="entrypoints" select="document('lookup/eba-entrypoints.xml')/codes/code" />
<xsl:include href="common.xslt" />

<xsl:variable name="ebavalidations" select="document('lookup/eba-filing-rules.xml')" />
Expand Down Expand Up @@ -232,6 +233,12 @@
<xsl:with-param name="context" select="$href" />
</xsl:call-template>
</xsl:if>
<xsl:if test="not($entrypoints[. = $href])">
<xsl:call-template name="EBAError">
<xsl:with-param name="code" select="'1.5.b'" />
<xsl:with-param name="context" select="$href" />
</xsl:call-template>
</xsl:if>
</xsl:template>

<xsl:template match="link:linkbaseRef">
Expand Down
3 changes: 3 additions & 0 deletions lookup/eba-entrypoints.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<codes>
<code>http://www.eba.europa.eu/eu/fr/xbrl/crr/fws/sbp/cir-2070-2016/2023-07-31/mod/sbp_ifrs9.xsd</code>
</codes>
14 changes: 12 additions & 2 deletions lookup/eba-filing-rules.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,15 @@
[SBR13, p. 6]</control>
</rule>

<!-- 1.5.2 requires lookup -->
<!-- 1.5.b requires lookup -->
<rule>
<error_code>1.5.b</error_code>
<error_message>inappropriateSchemaRef</error_message>
<severity>ERROR</severity>
<control>The schemaRef element MUST refer to a URL appropriate to the module and the
reference date of an XBRL report, drawn from the list of xsd entry points published by
the EBA2.[EBA14]</control>
</rule>

<rule>
<error_code>1.6.c</error_code>
Expand Down Expand Up @@ -306,7 +314,9 @@
<error_code>3.11</error_code>
<error_message>leadingOrTrailingSpacesInText</error_message>
<severity>ERROR</severity>
<control>String facts, and string typed domain values, SHOULD not start or end with whitespace characters (i.e. MUST not do so unless, exceptionally, the whitespace is part of the data intended to be conveyed). [EIOPA15-S.2.21]</control>
<control>String facts, and string typed domain values, SHOULD not start or end with
whitespace characters (i.e. MUST not do so unless, exceptionally, the whitespace is part
of the data intended to be conveyed). [EIOPA15-S.2.21]</control>
</rule>

</validation_rules>

0 comments on commit 22bfcb2

Please sign in to comment.