- The XBRL Standard
- XBRL Specifications
- Registries
- Functions Registry 1.0
- Functions Registry
- xfi:p-equal
- 80213:
Function test xfi:p-equal
Documentation
Tests of function xfi:p-equal($left as node()*, $right as node()*) as xs:boolean
Owners
Name
|
Affiliation
|
Email
|
Start
|
End
|
Herm Fischer |
UBMatrix / Mark V Systems
|
fischer@markv.com |
19-02-2008 at 00:00:00 |
|
References
http://www.xbrl.org/Specification/XF-PWD-2006-12-07.htm#_Toc152670715
Test Case Variations
V-01
Returns p-equality of items equal
Documentation
Inputs
Outputs
-
Result test:
$result instance of xs:boolean and
count( $result ) eq 1 and
$result eq true()
V-02
Same as V-01 but items not p-equal
Documentation
Inputs
Outputs
-
Result test:
$result instance of xs:boolean and
count( $result ) eq 1 and
$result eq false()
V-03
Same as V-01 but arguments are sequences
Documentation
Inputs
- schema: value-test-concepts.xsd
- instance: value-test-instance.xml
(DTS Discovery starting point)
(ID=V03)
-
Function Call:
xfi:p-equal( ( //concept:b[@id eq 't18'], //concept:b[@id eq 't15']),
( //concept:a[@id eq 't19'], //concept:b[@id eq 't16']) )
(against file V03)
Outputs
-
Result test:
$result instance of xs:boolean and
count( $result ) eq 1 and
$result eq true()
V-04
Same as V-01 but arguments are sequences not same length
Documentation
Inputs
- schema: value-test-concepts.xsd
- instance: value-test-instance.xml
(DTS Discovery starting point)
(ID=V04)
-
Function Call:
xfi:p-equal( ( //concept:b[@id eq 't18'], //concept:b[@id eq 't15']),
( //concept:a[@id eq 't19'] ) )
(against file V04)
Outputs
-
Result test:
$result instance of xs:boolean and
count( $result ) eq 1 and
$result eq false()
V-05
Not an element argument to function
Documentation
XPath-defined error for node type incorrect.
Inputs
Outputs
-
Error code: xqt-err:XPTY0004
V-06
A sequence of concepts as argument
Documentation
XPath-defined error for node type incorrect arity of arguments.
Inputs
Outputs
-
Error code: xqt-err:XPST0017
V-07
Not a concept argument to function
Documentation
Function-defined error for argument type incorrect.
Inputs
Outputs
-
Error code: xfie:ElementIsNotXbrlConcept
Revisions
Name
|
On
|
Details
|
Herm Fischer |
19-02-2008 at 00:00:00 |
Created the test case.
|