- The XBRL Standard
- XBRL Specifications
- Registries
- Functions Registry 1.0
- Functions Registry
- xfi:role-definition
- 90505:
Function test for xfi:role-definition
Documentation
Tests of function xfi:role-definition($arcrole as xs:string, element(xbrli:xbrl)?) as xs:string?
Owners
Name
|
Affiliation
|
Email
|
Start
|
End
|
Herm Fischer |
UBMatrix / Mark V Systems
|
fischer@markv.com |
12-12-2008 at 00:00:00 |
|
References
http://www.xbrl.org/Specification/XF-PWD-2006-12-07.htm#_Toc152670666
Test Case Variations
V-01
Definition of role link1
Documentation
Inputs
- schema: definition-test1.xsd
(DTS Discovery starting point)
(ID=V01)
-
Function Call:
xfi:role-definition('http://abc.com/role/link1')
(against file V01)
Outputs
-
Result test:
$result eq 'Hello from link1'
V-02
Definition of role link2
Documentation
Inputs
- schema: definition-test1.xsd
(DTS Discovery starting point)
(ID=V02)
-
Function Call:
xfi:role-definition('http://abc.com/role/link2')
(against file V02)
Outputs
-
Result test:
$result eq 'Hello from link2'
V-03
Definition absent from role link3
Documentation
Inputs
- schema: definition-test1.xsd
(DTS Discovery starting point)
(ID=V03)
-
Function Call:
xfi:role-definition('http://abc.com/role/link3')
(against file V03)
Outputs
-
Result test:
empty($result)
V-04
Definition of non-existent role link4
Documentation
Inputs
- schema: definition-test1.xsd
(DTS Discovery starting point)
(ID=V04)
-
Function Call:
xfi:role-definition('http://abc.com/role/link4')
(against file V04)
Outputs
-
Result test:
empty($result)
Revisions
Name
|
On
|
Details
|
Herm Fischer |
12-12-2008 at 00:00:00 |
Created the test case.
|
Herm Fischer |
09-09-2010 at 00:00:00 |
Changed role URI to string for cast-less coding and to be similar to fn:QName's $paramURI, an xs:string.
|