90501: Function test for xfi:linkbase-link-roles

Documentation

Tests of function xfi:linkbase-link-roles($arcrole as xs:string) as xs:anyURI*

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 Linkbase link roles used by presentation arcs

Documentation

Inputs

Outputs

  • Result test: count($result) eq 2 and $result[1] instance of xs:anyURI and $result[2] instance of xs:anyURI and index-of($result,xs:anyURI('http://abc.com/role/link1')) and index-of($result,xs:anyURI('http://abc.com/role/link2'))

V-02 Footnote link roles used by footnote arcs

Documentation

Inputs

Outputs

  • Result test: count($result) eq 2 and $result[1] instance of xs:anyURI and $result[2] instance of xs:anyURI and index-of($result,xs:anyURI('http://www.xbrl.org/2003/role/link')) and index-of($result,xs:anyURI('http://abc.com/role/link1'))

V-03 Non-existent arcrole parameter returns empty sequence

Documentation

Inputs

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 input role URIs to strings for cast-less coding and to be similar to fn:QName's $paramURI, an xs:string. Changed tests to cast comparisons to xs:anyURI.
Herm Fischer 28-02-2011 at 10:00:00 Added missing xmlns:xs.