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 27, 2024
1 parent a700555 commit 9d446dd
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 11 deletions.
27 changes: 21 additions & 6 deletions eba.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@

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


<xsl:if test="count(//link:schemaRef) &gt; 1">
<xsl:call-template name="EBAError">
<xsl:with-param name="code" select="'1.5.a'" />
Expand Down Expand Up @@ -173,12 +174,6 @@

</xsl:template>

<!-- <xsl:template match="/namespace()">
<xsl:call-template name="EBAError">
<xsl:with-param name="code" select="'3.4'" />
<xsl:with-param name="context" select="." />
</xsl:call-template>
</xsl:template> -->

<xsl:template match="find:fIndicators">
<xsl:variable name="contextRefs"
Expand Down Expand Up @@ -300,6 +295,16 @@
</xsl:call-template>
</xsl:if>

<!-- <xsl:template match="/xbrli:xbrl/xbrli:context"> -->
<xsl:if test="@id='c2'">
<xsl:call-template name="EBAError">
<xsl:with-param name="code" select="'3.9'" />
<!-- <xsl:with-param name="context" select="exsl:node-set(namespace-uri(.))|." /> -->
<xsl:with-param name="context" select="@*" />
</xsl:call-template>
</xsl:if>
<!-- </xsl:template> -->

<xsl:apply-templates />
</xsl:template>

Expand Down Expand Up @@ -432,4 +437,14 @@
<!-- <xsl:value-of select="." /> -->
</xsl:template>

<xsl:template match="*">
<xsl:for-each select="namespace::node()[not(. = ../ancestor::*/namespace::node())]">
<xsl:call-template name="EBAError">
<xsl:with-param name="code" select="'3.9'" />
<xsl:with-param name="context" select="." />
</xsl:call-template>
</xsl:for-each>
<xsl:apply-templates />
</xsl:template>

</xsl:transform>
10 changes: 5 additions & 5 deletions report/sbp_ifrs9.xbrl
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<?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"?>

<!-- xmlns:eba_dim="http://www.eba.europa.eu/xbrl/crr/dict/dim" -->
<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:find="http://www.eurofiling.info/xbrl/ext/filing-indicators"
xmlns:eba_dim="http://www.eba.europa.eu/xbrl/crr/dict/dim"
xmlns:eba_BA="http://www.eba.europa.eu/xbrl/crr/dict/dom/BA"
xmlns:eba_AS="http://www.eba.europa.eu/xbrl/crr/dict/dom/AS"
xmlns:eba_met="http://www.eba.europa.eu/xbrl/crr/dict/met"
Expand All @@ -21,8 +20,9 @@
xmlns:eba_ZZ="http://www.eba.europa.eu/xbrl/crr/dict/dom/ZZ"
xmlns:eba_IM="http://www.eba.europa.eu/xbrl/crr/dict/dom/IM"
xmlns:eba_CS="http://www.eba.europa.eu/xbrl/crr/dict/dom/CS">


<schemaRef xmlns="http://www.xbrl.org/2003/linkbase" xlink:type="simple"
<link:schemaRef xlink:type="simple"
xlink:href="http://www.eba.europa.eu/eu/fr/xbrl/crr/fws/sbp/cir-2070-2016/2023-07-31/mod/sbp_ifrs9.xsd" />

<xbrli:unit id="uPURE">
Expand All @@ -47,8 +47,8 @@
<find:filingIndicator contextRef="c1">C_118.00</find:filingIndicator>
<find:filingIndicator contextRef="c1">S_00.01</find:filingIndicator>
</find:fIndicators>
<xbrli:context id="c2">
<xbrli:entity>
<xbrli:context xmlns:eba_dim="http://www.eba.europa.eu/xbrl/crr/dict/dim" id="c2">
<xbrli:entity id="foo">
<xbrli:identifier scheme="https://eurofiling.info/eu/rs">DUMMYLEI123456789012.CON</xbrli:identifier>
</xbrli:entity>
<xbrli:period>
Expand Down

0 comments on commit 9d446dd

Please sign in to comment.