- The XBRL Standard
- XBRL Specifications
- Registries
- Functions Registry 1.0
- Functions Registry
- xfi:context
- 80101:
Function test for xfi:context
Documentation
Tests of function xfi:context($item as schema-element(xbrli:item)) as element(xbrli:context)
Owners
Name
|
Affiliation
|
Email
|
Start
|
End
|
Herm Fischer |
UBMatrix / Mark V Systems
|
fischer@markv.com |
23-01-2008 at 00:00:00 |
|
References
http://www.xbrl.org/Specification/XF-PWD-2006-12-07.htm#_Toc152670666
Test Case Variations
V-01
Returns correct context for earth context
Documentation
Tests that element returned is context for specified item.
Inputs
Outputs
-
Result test:
$result instance of element(xbrli:context) and
count( $result ) eq 1 and
$result/@id eq "context-earth"
V-02
Returns correct context for romulus context
Documentation
Tests that element returned is context for specified item.
Inputs
Outputs
-
Result test:
$result instance of element(xbrli:context)
and count( $result ) eq 1 and
$result/@id eq "context-romulus"
V-03
Returns correct context for vulcan context
Documentation
Tests that element returned is context for specified item.
Inputs
Outputs
-
Result test:
$result instance of element(xbrli:context) and
count( $result ) eq 1 and
$result/xbrli:entity/xbrli:identifier/text() eq 'planet-vulcan'
V-04
Returns error for a tuple
Documentation
Tests that no context (empty sequence) is returned for a specified tuple.
Inputs
Outputs
-
Error code: xqt-err:XPTY0004
V-05
Wrong node to function
Documentation
XPath-defined error for node type incorrect.
Inputs
Outputs
-
Error code: xqt-err:XPTY0004
V-06
A sequence of items as argument
Documentation
XPath-defined error for node type incorrect arity of arguments.
Inputs
Outputs
-
Error code: xqt-err:XPTY0004
V-07
A wrong number of arguments
Documentation
XPath-defined error for node type incorrect number of arguments.
Inputs
Outputs
-
Error code: xqt-err:XPST0017
Revisions
Name
|
On
|
Details
|
Herm Fischer |
23-01-2008 at 00:00:00 |
Created the test case.
|
Herm Fischer |
05-02-2008 at 00:00:00 |
Added variation for a tuple.
|