80200: Function test xfi:identical-nodes
Documentation
Owners
Name | Affiliation | Start | End | |
---|---|---|---|---|
Herm Fischer |
|
fischer@markv.com | 19-02-2008 at 00:00:00 |
References
http://www.xbrl.org/Specification/XF-PWD-2006-12-07.htm#_Toc152670702
Test Case Variations
V-01
Returns identical-nodes of nodes which are s-equal but not identical
Documentation
Inputs
- schema: identical-nodes.xsd
- linkbase: identical-nodes-definition.xml
- instance: identical-nodes-instance.xml (DTS Discovery starting point) (ID=V01)
-
Function Call:
xfi:identical-nodes( //xbrli:context[@id='c-V01-left'], //xbrli:context[@id='c-V01-right'] )
(against file V01)
Outputs
-
Result test:
$result instance of xs:boolean and count( $result ) eq 1 and $result eq false()
V-02
Same as V-01 but same sequence of nodes
Documentation
Inputs
- schema: identical-nodes.xsd
- linkbase: identical-nodes-definition.xml
- instance: identical-nodes-instance.xml (DTS Discovery starting point) (ID=V02)
-
Function Call:
xfi:identical-nodes( ( //xbrli:context[@id='c-V01-left'], //concept:P3[@id eq 'V02-left']), ( //xbrli:context[@id='c-V01-left'], //concept:P3[@id eq 'V02-left']) )
(against file V02)
Outputs
-
Result test:
$result instance of xs:boolean and count( $result ) eq 1 and $result eq true()
V-03
Same as V-01 but arguments are different sequences
Documentation
Inputs
- schema: identical-nodes.xsd
- linkbase: identical-nodes-definition.xml
- instance: identical-nodes-instance.xml (DTS Discovery starting point) (ID=V03)
-
Function Call:
xfi:identical-nodes( ( //xbrli:context[@id='c-V01-left'], //concept:P3[@id eq 'V02-left']), ( //xbrli:context[@id='c-V03-right'], //concept:P3[@id eq 'V02-left']) )
(against file V03)
Outputs
-
Result test:
$result instance of xs:boolean and count( $result ) eq 1 and $result eq false()
V-04
Same as V-01 but arguments are sequences not same length
Documentation
Inputs
- schema: identical-nodes.xsd
- linkbase: identical-nodes-definition.xml
- instance: identical-nodes-instance.xml (DTS Discovery starting point) (ID=V04)
-
Function Call:
xfi:identical-nodes( ( //xbrli:context[@id='c-V01-left'], //concept:P3[@id eq 'V02-left']), ( //xbrli:context[@id='c-V03-left'] ) )
(against file V04)
Outputs
-
Result test:
$result instance of xs:boolean and count( $result ) eq 1 and $result eq false()
V-05
Wrong node to function
Documentation
Inputs
- schema: identical-nodes.xsd
- linkbase: identical-nodes-definition.xml
- instance: identical-nodes-instance.xml (DTS Discovery starting point) (ID=V05)
-
Function Call:
xfi:identical-nodes( /xbrli:xbrl/xbrli:context[2], 'just a string' )
(against file V05)
Outputs
- Error code: xqt-err:XPTY0004
V-06
A sequence of concepts as argument
Documentation
Inputs
- schema: identical-nodes.xsd
- linkbase: identical-nodes-definition.xml
- instance: identical-nodes-instance.xml (DTS Discovery starting point) (ID=V06)
-
Function Call:
xfi:identical-nodes( //xbrli:xbrl/xbrli:context[starts-with(@id,'c-V0')] )
(against file V06)
Outputs
- Error code: xqt-err:XPST0017
Revisions
Name | On | Details |
---|---|---|
Herm Fischer | 19-02-2008 at 00:00:00 |
|