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 25, 2024
1 parent f40ffe6 commit f9c2769
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 8 deletions.
23 changes: 15 additions & 8 deletions eba.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,7 @@
</xsl:call-template>
</xsl:if>

<xsl:variable name="noninstants"
select="xbrli:context/xbrli:period/*[name()!='xbrli:instant']" />
<xsl:if test="noninstants">
<xsl:call-template name="EBAError">
<xsl:with-param name="code" select="'2.13.b'" />
<xsl:with-param name="context" select="$noninstants" />
</xsl:call-template>
</xsl:if>

<!-- /root/*[not(name()='terminate')] -->

<xsl:apply-templates />
Expand Down Expand Up @@ -323,13 +316,27 @@
</xsl:call-template>
</xsl:template>

<xsl:template match="/xbrli:xbrl/xbrli:context/xbrli:period[child::*[name()!='xbrli:instant']]">
<xsl:call-template name="EBAError">
<xsl:with-param name="code" select="'2.13.b'" />
<xsl:with-param name="context" select="*" />
</xsl:call-template>
</xsl:template>

<xsl:template match="xbrli:segment">
<xsl:call-template name="EBAError">
<xsl:with-param name="code" select="'2.14'" />
<xsl:with-param name="context" select="." />
</xsl:call-template>
</xsl:template>

<xsl:template match="/xbrli:xbrl/xbrli:context/xbrli:scenario[child::*[not(name()='xbrldi:explicitMember' or name()='xbrldi:typedMember')]]">
<xsl:call-template name="EBAError">
<xsl:with-param name="code" select="'2.15'" />
<xsl:with-param name="context" select="child::*[not(name()='xbrldi:explicitMember' or name()='xbrldi:typedMember')]" />
</xsl:call-template>
</xsl:template>

<xsl:template match="text()|@*">
<!-- <xsl:value-of select="."/> -->
</xsl:template>
Expand Down
6 changes: 6 additions & 0 deletions lookup/eba-validations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,10 @@
<severity>ERROR</severity>
<control>xbrli:segment elements MUST NOT be used.</control>
</rule>
<rule>
<error_code>2.15</error_code>
<error_message>scenarioContainsNonDimensionContent</error_message>
<severity>ERROR</severity>
<control>If an xbrli:scenario element appears in a xbrli:context, then its children MUST only be one or more xbrldi:explicitMember and/or xbrldi:typedMember elements, and MUST NOT contain any other content. [EFM13, p. 6-8]</control>
</rule>
</validation_rules>
3 changes: 3 additions & 0 deletions report/sbp_ifrs9.xbrl
Original file line number Diff line number Diff line change
Expand Up @@ -9065,6 +9065,8 @@
</xbrli:entity>
<xbrli:period>
<xbrli:instant>2023-12-31</xbrli:instant>
<!-- <xbrli:startDate>2000-01-01</xbrli:startDate>
<xbrli:endDate>2000-01-01</xbrli:endDate> -->
</xbrli:period>
<xbrli:scenario>
<xbrldi:explicitMember dimension="eba_dim:BAS">eba_BA:x17</xbrldi:explicitMember>
Expand All @@ -9073,6 +9075,7 @@
<xbrldi:explicitMember dimension="eba_dim:PSB">eba_PL:x823</xbrldi:explicitMember>
<xbrldi:explicitMember dimension="eba_dim:ESC">eba_ZZ:x416</xbrldi:explicitMember>
<xbrldi:explicitMember dimension="eba_dim:FLI">eba_GA:AE</xbrldi:explicitMember>
<!-- <foo>bar</foo> -->
</xbrli:scenario>
</xbrli:context>
<eba_met:pi471 unitRef="uPURE" decimals="4" contextRef="c479">52.33</eba_met:pi471>
Expand Down

0 comments on commit f9c2769

Please sign in to comment.