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 1ddd4eb commit a8abb2a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
13 changes: 11 additions & 2 deletions eba.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
</xsl:call-template>
</xsl:template>

<xsl:template match="comment()">
<xsl:template match="xbrli:xbrl/comment()">
<xsl:call-template name="EBAError">
<xsl:with-param name="code" select="'2.5'" />
<xsl:with-param name="context" select="." />
Expand All @@ -176,9 +176,18 @@
</xsl:call-template>
</xsl:template>


<xsl:template match="/">
<result>
<xsl:variable name="pi" select="processing-instruction('instance-generator')" />
<xsl:variable name="id" select="substring-before(substring-after($pi,'id=&quot;'),'&quot;')"/>
<xsl:variable name="version" select="substring-before(substring-after($pi,'version=&quot;'),'&quot;')"/>
<xsl:variable name="creationdate" select="substring-before(substring-after($pi,'creationdate=&quot;'),'&quot;')"/>
<xsl:if test="not($pi) or not($id) or not($version) or not($creationdate)">
<xsl:call-template name="EBAError">
<xsl:with-param name="code" select="'2.26'" />
<xsl:with-param name="context" select="$pi" />
</xsl:call-template>
</xsl:if>
<xsl:apply-templates />
<xsl:apply-templates select="//@*" />
</result>
Expand Down
8 changes: 8 additions & 0 deletions lookup/eba-validations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,12 @@
<severity>WARNING</severity>
<control>Relevant business data MUST only be contained in contexts, units, schemaRef and facts. A footnote MUST not have any impact on the regulatory content of a report.</control>
</rule>
<rule>
<error_code>2.26</error_code>
<error_message>missingOrIncorrectSoftwareInformation</error_message>
<severity>WARNING</severity>
<control>Information on the software component used for production of the XBRL report SHOULD be included as an XML Processing Instruction at the beginning of the file, after the XML version and encoding declaration. It SHOULD have at least the &lt;?instance-generator&gt; instructions and the variables: id, version and creationdate.</control>
</rule>


</validation_rules>
4 changes: 3 additions & 1 deletion report/sbp_ifrs9.xbrl
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?xml version='1.0' encoding='UTF-8'?>
<?instance-generator id="EBA Data Gen" version="2015.8.28.0" creationdate="2015-09-15T16:53:43:00+02:00"?>

<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"
Expand Down Expand Up @@ -9075,4 +9077,4 @@
</xbrli:context>
<eba_met:pi471 unitRef="uPURE" decimals="4" contextRef="c479">52.33</eba_met:pi471>
<eba_met:pi472 unitRef="uPURE" decimals="4" contextRef="c479">43.43</eba_met:pi472>
</xbrli:xbrl>
</xbrli:xbrl>

0 comments on commit a8abb2a

Please sign in to comment.