- The XBRL Standard
- XBRL Specifications
- Registries
- Functions Registry 1.0
- Functions Registry
- xfi:is-fraction
- 80152:
xfi:is-fraction
Documentation
Test the functionality of the xfi:is-fraction function.
Owners
Name
|
Affiliation
|
Email
|
Start
|
End
|
Geoff Shuetrim |
Galexy
|
geoff@galexy.net |
08-02-2008 at 18:49:00 |
|
Herm Fischer |
UBMatrix / Mark V Systems
|
fischer@markv.com |
22-06-2011 at 00:00:00 |
|
References
http://www.xbrl.org/Specification/XBRL-RECOMMENDATION-2003-12-31+Corrected-Errata-2006-12-18.htm#_Toc156209183
Test Case Variations
V-01
Returns false for a non-numeric concept
Documentation
The concept has an xbrli:stringItemType data type.
Inputs
- schema: types-test.xsd
- instance: types-instance.xml
(DTS Discovery starting point)
(ID=V01)
-
Function Call:
xfi:is-fraction(fn:node-name(/xbrli:xbrl/concept:c1[1]))
(against file V01)
Outputs
-
Result test:
$result eq false()
V-02
Returns false for a non-fraction numeric concept
Documentation
The concept has an xbrli:monetaryItemType data type.
Inputs
- schema: types-test.xsd
- instance: types-instance.xml
(DTS Discovery starting point)
(ID=V02)
-
Function Call:
xfi:is-fraction(fn:node-name(/xbrli:xbrl/concept:c2[1]))
(against file V02)
Outputs
-
Result test:
$result eq false()
V-03
Returns true for a fraction concept
Documentation
The concept has an xs:fractionItemType data type.
Inputs
- schema: types-test.xsd
- instance: types-instance.xml
(DTS Discovery starting point)
(ID=V03)
-
Function Call:
xfi:is-fraction(fn:node-name(/xbrli:xbrl/concept:c3[1]))
(against file V03)
Outputs
-
Result test:
$result eq true()
V-04
Returns false for a tuple concept
Documentation
The concept is a tuple.
Inputs
- schema: types-test.xsd
- instance: types-instance.xml
(DTS Discovery starting point)
(ID=V04)
-
Function Call:
xfi:is-fraction(fn:node-name(/xbrli:xbrl/concept:c4[1]))
(against file V04)
Outputs
-
Result test:
$result eq false()
Revisions
Name
|
On
|
Details
|
Geoff Shuetrim |
08-02-2008 at 00:00:00 |
Created the test case.
|
Herm Fischer |
22-06-2011 at 00:00:00 |
Added xmlns:xs.
|