xfi:concept-custom-attribute

xs:anyAtomicType?=xfi:concept-custom-attribute( $concept-name as xs:QName, $attribute-name as xs:QName)

Last updated on 04-02-2008 at 00:00:00.

Obtain the value of of an attribute on an XBRL concept declaration that is not in the XBRL instance or XML Schema namespaces.

OIM Status

Supported

Parameters

Name Type Details
concept-name xs:QName This parameter is the QName of the XBRL concept for which the custom attribute value is being sought.
attribute-name xs:QName This parameter is the QName of the custom attribute whose value is being sought.

Output

Type: xs:anyAtomicType?

Returns the value of the custom attribute on the XBRL concept if the attribute is on the concept declaration element.

If the custom attribute is omitted from the concept declaration, then an empty sequence is returned.

Errors

Code Details
xfie:invalidConceptQName This error MUST be thrown if the concept name parameter contains a QName that is not the QName of a concept in the reference discoverable taxonomy set.

Conformance suite

90203 xfi.concept-custom-attribute testcase.xml [ download ]

Owners

Name Affiliation Email Start End
Geoff Shuetrim Galexy geoff@galexy.net 04-02-2008 at 14:50:00

Revisions

Name On Details
Geoff Shuetrim 04-02-2008 at 00:00:00 Created the function definition.
Geoff Shuetrim 06-02-2008 at 09:23:00 Changed the output data type to avoid forcing type conversion to a string. This change was suggested by Herm Fischer to better handle situations where the custom attribute has a QName data type. Changed the output to an empty sequence rather than a string to avoid confusion in situations where the attribute is provided by has a value that is the empty string. Fixed up the typo referencing the xbrli:periodType attribute rather than the custom attribute.