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 5f38911 commit 3df4d98
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 9 deletions.
22 changes: 18 additions & 4 deletions eba.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
xmlns:find="http://www.eurofiling.info/xbrl/ext/filing-indicators"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xml="http://www.w3.org/XML/1998/namespace"
exclude-result-prefixes="my xbrli link find xsi xi" extension-element-prefixes="func str exsl">
xmlns:xlink="http://www.w3.org/1999/xlink"
exclude-result-prefixes="my xbrli link find xsi xi xlink" extension-element-prefixes="func str exsl">

<xsl:output indent="yes" method="xml" omit-xml-declaration="yes" />
<xsl:variable name="eeacountrycodes" select="document('lookup/eea-countries.xml')/codes/code" />
Expand Down Expand Up @@ -140,15 +141,28 @@
</xsl:call-template>
</xsl:template>

<xsl:template match="/xbrli:xbrl/link:schemaRef">
<xsl:variable name="href" select="@xlink:href" />
<xsl:if test="not(starts-with($href,'http://'))">
<xsl:call-template name="EBAError">
<xsl:with-param name="code" select="'2.2'" />
<xsl:with-param name="context" select="$href" />
</xsl:call-template>
</xsl:if>
</xsl:template>


<xsl:template match="/">
<result>
<xsl:apply-templates />
<xsl:apply-templates select="//@*" />
</result>
</xsl:template>

<xsl:template match="/">
<xsl:apply-templates select="//@*" />
</xsl:template>
<!-- <xsl:template match="/">
</xsl:template> -->

<xsl:template match="text()|@*">
<!-- <xsl:value-of select="."/> -->
Expand Down
8 changes: 7 additions & 1 deletion lookup/eba-validations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,11 @@
<severity>ERROR</severity>
<control>XBRL reports MUST NOT use the XInclude specification (xi:include element).</control>
</rule>

<rule>
<error_code>2.2</error_code>
<error_message>inappropriateSchemaRef</error_message>
<severity>ERROR</severity>
<control>The link:schemaRef element in submitted reports MUST resolve to the full published xsd entry point URL (absolute URL).</control>
</rule>

</validation_rules>
8 changes: 4 additions & 4 deletions report/sbp_ifrs9.xbrl
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version='1.0' encoding='UTF-8'?>
<!--(C) EBA-->
<xbrli:xbrl xmlns:xml="http://www.w3.org/XML/1998/namespace"
xmlns:xbrli="http://www.xbrl.org/2003/instance"
xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xbrldi="http://xbrl.org/2006/xbrldi" xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:link="http://www.xbrl.org/2003/linkbase"
xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
xmlns:eba_model="http://www.eba.europa.eu/xbrl/ext/model"
xmlns:find="http://www.eurofiling.info/xbrl/ext/filing-indicators"
xmlns:eba_dim="http://www.eba.europa.eu/xbrl/crr/dict/dim"
Expand Down Expand Up @@ -9065,7 +9065,7 @@ xmlns:xbrli="http://www.xbrl.org/2003/instance"
<xbrli:period>
<xbrli:instant>2023-12-31</xbrli:instant>
</xbrli:period>
<xbrli:scenario xml:base="foo">
<xbrli:scenario>
<xbrldi:explicitMember dimension="eba_dim:BAS">eba_BA:x17</xbrldi:explicitMember>
<xbrldi:explicitMember dimension="eba_dim:MCY">eba_MC:x997</xbrldi:explicitMember>
<xbrldi:explicitMember dimension="eba_dim:RPE">eba_RF:x82</xbrldi:explicitMember>
Expand Down

0 comments on commit 3df4d98

Please sign in to comment.