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 24, 2024
1 parent 792f412 commit c3f43ee
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 6 deletions.
14 changes: 13 additions & 1 deletion eba.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,25 @@
select="//find:filingIndicator[not(@contextRef=preceding::find:filingIndicator/@contextRef)]/@contextRef" />
<xsl:for-each select="$contextRefs">
<xsl:variable name="id" select="." />
<xsl:if test="/xbrli:xbrl/xbrli:context[@id=$id]/xbrli:scenario|xbrli:segment">
<xsl:if test="/xbrli:xbrl/xbrli:context[@id=$id]/xbrli:scenario|xbrli:segment">
<xsl:call-template name="EBAError">
<xsl:with-param name="code" select="'1.6.c'" />
<xsl:with-param name="context" select="." />
</xsl:call-template>
</xsl:if>
</xsl:for-each>

<xsl:variable name="templates"
select="//find:filingIndicator[not(text()=preceding::find:filingIndicator/text())]" />
<xsl:for-each select="$templates">
<xsl:variable name="template" select="." />
<xsl:if test="count(/xbrli:xbrl/find:fIndicators/find:filingIndicator[text()=$template]) &gt; 1">
<xsl:call-template name="EBAError">
<xsl:with-param name="code" select="'1.6.1'" />
<xsl:with-param name="context" select="$template" />
</xsl:call-template>
</xsl:if>
</xsl:for-each>
</xsl:template>

<xsl:template match="/">
Expand Down
15 changes: 13 additions & 2 deletions lookup/eba-validations.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
<validation_rules>
<rule>
<number>1.5</number>
<control>multipleSchemaRefs: Reporting entities MUST reference only one xsd entry point ("module", link:schemaRef element), as specified in the applicable taxonomy, per XBRL report. [SBR13, p. 6]</control>
<error_code>1.5.a</error_code>
<error_message>multipleSchemaRefs</error_message>
<severity>ERROR</severity>
<control>Reporting entities MUST reference only one xsd entry point ("module", link:schemaRef element), as specified in the applicable taxonomy, per XBRL report. [SBR13, p. 6]</control>
</rule>
<rule>
<error_code>1.6.c</error_code>
<error_message>invalidContextForFilingIndicator</error_message>
<severity>ERROR</severity>
<control>he context referenced by the filing indicator elements MUST NOT contain xbrli:segment or xbrli:scenario elements.</control>
</rule>
<rule>
<error_code>1.6.1</error_code>
<error_message>duplicateFilingIndicator</error_message>
<severity>ERROR</severity>
<control>XBRL reports MUST contain only one filing indicator element for a given reporting unit ("template").</control>
</rule>
</validation_rules>
4 changes: 1 addition & 3 deletions report/sbp_ifrs9.xbrl
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@
<xbrli:period>
<xbrli:instant>2023-12-31</xbrli:instant>
</xbrli:period>
<xbrli:scenario>
<xbrldi:explicitMember dimension="eba_dim:BAS">eba_BA:x17</xbrldi:explicitMember>
</xbrli:scenario>
</xbrli:context>
<find:fIndicators>
<find:filingIndicator contextRef="c1">S_00.01</find:filingIndicator>
<find:filingIndicator contextRef="c1">C_111.00</find:filingIndicator>
<find:filingIndicator contextRef="c1">C_112.00</find:filingIndicator>
<find:filingIndicator contextRef="c1">C_113.00</find:filingIndicator>
Expand Down

0 comments on commit c3f43ee

Please sign in to comment.