- The XBRL Standard
- XBRL Specifications
- Registries
- Functions Registry 1.0
- Functions Registry
- xfi:concept-data-type-derived-from
- 90205:
Function test for xfi:data-type-derived-from
Documentation
Tests various pairs of data types that are related and unrelated
to eachother by derivation.
Owners
Name
|
Affiliation
|
Email
|
Start
|
End
|
Geoff Shuetrim |
Galexy
|
geoff@galexy.net |
20-02-2008 at 10:20:00 |
|
References
http://www.xbrl.org/Specification/XF-PWD-2006-12-07.htm#_Toc152670666
Test Case Variations
V-01
Return true for xbrli:stringItemType and xs:string data types
Documentation
Inputs
- schema: concept-data-type.xsd
(DTS Discovery starting point)
(ID=V01)
-
Function Call:
xfi:concept-data-type-derived-from(
QName('http://xbrl.org/formula/conformance/example','cStr'),
QName('http://www.w3.org/2001/XMLSchema','string')
)
(against file V01)
Outputs
-
Result test:
$result eq fn:true()
V-02
Return true for xbrli:stringItemType and xbrli:stringItemType data types
Documentation
Inputs
- schema: concept-data-type.xsd
(DTS Discovery starting point)
(ID=V02)
-
Function Call:
xfi:concept-data-type-derived-from(
QName('http://xbrl.org/formula/conformance/example','cStr'),
QName('http://www.xbrl.org/2003/instance','stringItemType')
)
(against file V02)
Outputs
-
Result test:
$result eq fn:true()
V-03
Return false for xbrli:stringItemType and xs:decimal data types
Documentation
Inputs
- schema: concept-data-type.xsd
(DTS Discovery starting point)
(ID=V03)
-
Function Call:
xfi:concept-data-type-derived-from(
QName('http://xbrl.org/formula/conformance/example','cStr'),
QName('http://www.w3.org/2001/XMLSchema','decimal')
)
(against file V03)
Outputs
-
Result test:
$result eq fn:false()
V-04
Return false for xbrli:stringItemType and xbrli:monetaryItemType data types
Documentation
Inputs
- schema: concept-data-type.xsd
(DTS Discovery starting point)
(ID=V04)
-
Function Call:
xfi:concept-data-type-derived-from(
QName('http://xbrl.org/formula/conformance/example','cStr'),
QName('http://www.xbrl.org/2003/instance','monetaryItemType')
)
(against file V04)
Outputs
-
Result test:
$result eq fn:false()
V-05
Return false for xbrli:floatItemType and xbrli:decimalItemType data types
Documentation
Inputs
- schema: concept-data-type.xsd
(DTS Discovery starting point)
(ID=V05)
-
Function Call:
xfi:concept-data-type-derived-from(
QName('http://xbrl.org/formula/conformance/example','cFlt'),
QName('http://www.xbrl.org/2003/instance','decimalItemType')
)
(against file V05)
Outputs
-
Result test:
$result eq fn:false()
Revisions
Name
|
On
|
Details
|
Geoff Shuetrim |
20-02-2008 at 11:00:00 |
Created the test case.
|