hh: Auslesen von Werten aus einer linkbase

Beitrag lesen

Ok, ich hoffe dass jemand mein Anliegen versteht und mir ein Licht am Ende des Tunnels zeigen kann und ich die Linkbase mit xlink verstehe, meine xml Datei sieht so aus:
--------------
mein.xml

<?xml version="1.0" encoding="UTF-8"?>
<xbrl xsi:schemaLocation="http://xbrl.iasb.org/int/fr/ifrs/gp/2005-05-15 ifrs-gp-2005-05-15.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.xbrl.org/2003/instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:iso4217="http://www.xbrl.org/2003/iso4217" xmlns:ifrs-gp="http://xbrl.iasb.org/int/fr/ifrs/gp/2005-05-15">
<link:schemaRef xlink:type="simple" xlink:href="ifrs-gp-2005-05-15.xsd" />
<link:linkbaseRef xlink:type="simple" xlink:role="http://www.xbrl.org/2003/role/presentationLinkbaseRef" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="ifrs-gp-pre-bs-classified-2005-05-15.xml" />
<link:linkbaseRef xlink:type="simple" xlink:role="http://www.xbrl.org/2003/role/presentationLinkbaseRef" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="ifrs-gp-pre-is-byFunction-2005-05-15.xml" />

<ifrs-gp:ProvisionsTotal decimals="0" contextRef="Current_AsOf" unitRef="U-Euros">663117698</ifrs-gp:ProvisionsTotal>
<ifrs-gp:OtherProvisionsTotal decimals="0" contextRef="Current_AsOf" unitRef="U-Euros">663117698</ifrs-gp:OtherProvisionsTotal>
</xbrl>

--------------

Die ifrs-gp-2005-05-15.xsd Datei liegt im gleichen Verzeichnis wie meine mein.xml und mein.xsl, als auch die Linkbase xml Dateien ifrs-gp-lab-2005-05-15.xml / ifrs-gp-ref-2005-05-15.xml / ifrs-gp-pre-bs-classified-2005-05-15.xml / ifrs-gp-pre-is-byFunction-2005-05-15.xml

Für das Element ifrs-gp:ProvisionsTotal gibt es eine Bezeichnung in der Linkbase und zwar etwa in der Datei

-------------
ifrs-gp-lab-2005-05-15.xml:

<?xml version="1.0" encoding="utf-8"?>
<linkbase xmlns="http://www.xbrl.org/2003/linkbase" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
<roleRef xlink:type="simple" xlink:href="restatedLabel.xsd#restatedLabel" roleURI="http://www.xbrl.org/2005/role/restatedLabel" />

<labelLink xlink:type="extended" xlink:role="http://www.xbrl.org/2003/role/link">

<loc xlink:type="locator" xlink:href="ifrs-gp-2005-05-15.xsd#ifrs-gp_ProvisionsTotal" xlink:label="ifrs-gp_ProvisionsTotal" />

<labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="ifrs-gp_ProvisionsTotal" xlink:to="ifrs-gp_ProvisionsTotal_lbl" />

<label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/periodEndLabel" xlink:label="ifrs-gp_ProvisionsTotal_lbl" xml:lang="en">Provisions, Total, Ending Balance</label>
<label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/periodStartLabel" xlink:label="ifrs-gp_ProvisionsTotal_lbl" xml:lang="en">Provisions, Total, Beginning Balance</label>
<label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="ifrs-gp_ProvisionsTotal_lbl" xml:lang="en">Provisions, Total</label>

</labelLink>
</linkbase>

--------------

Die ifrs-gp-2005-05-15.xsd enthält alle möglichen Elemente, die meiner mein.xml enthalten sein dürfen und sieht etwa so aus
--------------
ifrs-gp-2005-05-15.xsd

<?xml version="1.0" encoding="utf-8"?>
<schema
xmlns="http://www.w3.org/2001/XMLSchema"
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:ifrs-gp="http://xbrl.iasb.org/int/fr/ifrs/gp/2005-05-15"
xmlns:ifrs-gp-typ="http://xbrl.iasb.org/int/fr/ifrs/gp/2005-05-15/types"
targetNamespace="http://xbrl.iasb.org/int/fr/ifrs/gp/2005-05-15"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<annotation>
<appinfo>
<link:linkbaseRef xlink:type="simple" xlink:href="ifrs-gp-lab-2005-05-15.xml" xlink:role="http://www.xbrl.org/2003/role/labelLinkbaseRef" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:title="Label Links, all" />
<link:linkbaseRef xlink:type="simple" xlink:href="ifrs-gp-ref-2005-05-15.xml" xlink:role="http://www.xbrl.org/2003/role/referenceLinkbaseRef" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:title="Reference Links, all" />
</appinfo>
</annotation>

<import namespace="http://www.xbrl.org/2003/instance" schemaLocation="http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd" />

<import namespace="http://xbrl.iasb.org/int/fr/ifrs/gp/2005-05-15/types" schemaLocation="ifrs-gp-types-2005-05-15.xsd" />

<element name="ProvisionsTotal" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" nillable="true" id="ifrs-gp_ProvisionsTotal" xbrli:periodType="instant" xbrli:balance="credit"/>

</schema>

-----------

So, nun meine Frage, wie kann ich es in meiner mein.xsl Datei anstellen, dass ich mir automatisch für das element aus mein.xml mir die Bezeichnung aus der linkbase holen lasse???????
-----------
mein .xsl

<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet version="1.0"
xmlns:xbrli="http://www.xbrl.org/2003/instance"
xmlns:xbrll="http://www.xbrl.org/2003/linkbase"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:ifrs-gp="http://xbrl.iasb.org/int/fr/ifrs/gp/2005-05-15"
exclude-result-prefixes="ifrs-gp link xbrli xlink xsi"
xmlns:link="http://www.xbrl.org/2003/linkbase">
<xsl:output method="html"/>
<xsl:template match="/">
<html xmlns:xbrll="http://www.xbrl.org/2003/linkbase"><head></head>
<body>
<p>Beizeichnung:
????????????????????????????????????????????
</p>
<p>Wert:
<xsl:value-of select="/xbrli:xbrl/ifrs-gp:AssetsTotal"/>
</p>
</body>
</html>
</xsl:template>

------------

Also als Ergebnis möchte ich schlicht und einfach

Bezeichnung: Provisions, Total

Wert: 663117698

Kann mir jemand aus diesem Dschungel helfen, was ich an der Stelle ??????????? angeben muss. Wuerde mich sehr freuen, wenn es mir gelinge.