XBRL Template File: Difference between revisions

From XBRLWiki
Jump to navigationJump to search
(Created page with '==Description== The XBRL Template file is an XML file that defines events in order to let drivers to capture data that will be used for the generation of a new XBRL report. ==S…')
 
Line 5: Line 5:
==Sample file==
==Sample file==


<syntaxhighlight lang="xml">
<?xml version="1.0" encoding="UTF-8"?>
<!--
This is a simple configuration file for Reporting Standard XBRL Mapping engine.


(C) Reporting Standard S.L. 2007-2009 - All rights reserved
This file has been created for the purposes to show a simple use case for the mapper
The namespace for this file is "http://www.reportingstandard.com/map/1"
The "official location" of the schema is "http://www.reportingstandard.com/schemas/mapper/mapper-2008.xsd"
The mapping engine already provides an internal copy of the schema for the purposes of validating the
configuration file. The mapping engine does not need to have interner access.
-->
<xbrlMap
xmlns="http://www.reportingstandard.com/map/1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.reportingstandard.com/map/1 http://www.reportingstandard.com/schemas/mapper/mapper-2008.xsd"
xmlns:xbrli="http://www.xbrl.org/2003/instance"
xmlns:xbrldi="http://xbrl.org/2006/xbrldi">
<!--
section 1. identify the data source drivers that will be used to obtain the data related to this intace document template
there may be more than one data source driver.
each data source driver is identified by its id
the class MUST be in the classpath of the mapping Java Virtual Machine
-->
<datasources>
<source id="source0" class="com.ihr.xbrl.mapper.source.StaticSource"/>
</datasources>
<!--
section 2. this section provides data for the instance template
-->
<instance>
<!--
This is the set of files that compose the DTS of the instance document.
One or more files can be specified here.
The files may be either XBRL 2.1 Schemas or XBRL 2.1 Linkbases
-->
<dts>
<file>taxonomy.xsd</file>
</dts>
<!--
Templates for contexts. Contexts may be overwritten by the data source driver. but default contexts for facts
will be generated using the templates in this section.
-->
<contexts>
<scheme>http://www.xbrl.org/companyName</scheme>
<company>The Sample Company Name</company>
<instantPolicy>now</instantPolicy>
<startDatePolicy>instant</startDatePolicy>
<endDatePolicy>startDate+P1Y</endDatePolicy>
<!--
Template for instant contexts
-->
<xbrli:context id="ctx0i">
<xbrli:entity>
<xbrli:identifier scheme="_">_</xbrli:identifier>
</xbrli:entity>
<xbrli:period>
<xbrli:instant>0001-01-01</xbrli:instant>
</xbrli:period>
</xbrli:context>
<!--
Template for duration contexts
-->
<xbrli:context id="ctx0d">
<xbrli:entity>
<xbrli:identifier scheme="_">_</xbrli:identifier>
</xbrli:entity>
<xbrli:period>
<xbrli:startDate>0001-01-01</xbrli:startDate>
<xbrli:endDate>0001-01-01</xbrli:endDate>
</xbrli:period>
</xbrli:context>
</contexts>
<!--
Units used by the facts below
-->
<units>
<xbrli:unit id="EUR">
<xbrli:measure xmlns:iso4217="http://www.xbrl.org/2003/iso4217">iso4217:EUR</xbrli:measure>
</xbrli:unit>
</units>
<!--
Template of the instance document to produce
-->
<facts xmlns:tx="http://taxonomy.com/example">
<!-- item -->
<item sourceRef="source0" contextRef="ctx0i" mapIdentifier="identifier0" concept="tx:A" unitRef="EUR"/>
<item sourceRef="source0" contextRef="ctx0d" mapIdentifier="identifier1" concept="tx:B" multi="Single" unitRef="EUR"/>
<!-- tuple -->
<tuple concept="tx:U">
<item sourceRef="source0" contextRef="ctx0d" mapIdentifier="identifier2" concept="tx:C" multi="1"/>
<item sourceRef="source0" contextRef="ctx0d" mapIdentifier="identifier3" concept="tx:D" multi="Single"/>
<item sourceRef="source0" contextRef="ctx0d" mapIdentifier="identifier4" concept="tx:E" multi="All" unitRef="EUR"/>
</tuple>
</facts>
</instance>
</xbrlMap>
</syntaxhighlight>


==File sections==
==File sections==

Revision as of 16:18, 29 June 2009

Description

The XBRL Template file is an XML file that defines events in order to let drivers to capture data that will be used for the generation of a new XBRL report.

Sample file

<syntaxhighlight lang="xml"> <?xml version="1.0" encoding="UTF-8"?> <xbrlMap xmlns="http://www.reportingstandard.com/map/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.reportingstandard.com/map/1 http://www.reportingstandard.com/schemas/mapper/mapper-2008.xsd" xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:xbrldi="http://xbrl.org/2006/xbrldi">

<datasources> <source id="source0" class="com.ihr.xbrl.mapper.source.StaticSource"/> </datasources>

<instance> <dts> <file>taxonomy.xsd</file> </dts> <contexts> <scheme>http://www.xbrl.org/companyName</scheme> <company>The Sample Company Name</company> <instantPolicy>now</instantPolicy> <startDatePolicy>instant</startDatePolicy> <endDatePolicy>startDate+P1Y</endDatePolicy>

<xbrli:context id="ctx0i"> <xbrli:entity> <xbrli:identifier scheme="_">_</xbrli:identifier> </xbrli:entity> <xbrli:period> <xbrli:instant>0001-01-01</xbrli:instant> </xbrli:period> </xbrli:context>

<xbrli:context id="ctx0d"> <xbrli:entity> <xbrli:identifier scheme="_">_</xbrli:identifier> </xbrli:entity> <xbrli:period> <xbrli:startDate>0001-01-01</xbrli:startDate> <xbrli:endDate>0001-01-01</xbrli:endDate> </xbrli:period> </xbrli:context> </contexts>

<units> <xbrli:unit id="EUR"> <xbrli:measure xmlns:iso4217="http://www.xbrl.org/2003/iso4217">iso4217:EUR</xbrli:measure> </xbrli:unit> </units>

<facts xmlns:tx="http://taxonomy.com/example"> <item sourceRef="source0" contextRef="ctx0i" mapIdentifier="identifier0" concept="tx:A" unitRef="EUR"/> <item sourceRef="source0" contextRef="ctx0d" mapIdentifier="identifier1" concept="tx:B" multi="Single" unitRef="EUR"/> <tuple concept="tx:U"> <item sourceRef="source0" contextRef="ctx0d" mapIdentifier="identifier2" concept="tx:C" multi="1"/> <item sourceRef="source0" contextRef="ctx0d" mapIdentifier="identifier3" concept="tx:D" multi="Single"/> <item sourceRef="source0" contextRef="ctx0d" mapIdentifier="identifier4" concept="tx:E" multi="All" unitRef="EUR"/> </tuple> </facts> </instance> </xbrlMap>

</syntaxhighlight>

File sections