Purpose:
The OpenSearch description must contain a "Url" element that describes an HTTP URI for the OpenSearch Description document. The value of the "rel" attribute of this element must be "self", the value of the "type" attribute must be "application/opensearchdescription+xml" and the value of the "template" attribute must be the HTTP URI of the document.
Test method
- test if the OpenSearch Description provides a self "Url"
- test if the value of the self "Url" is the same as the URI of the OpenSearch Description that is being tested
Reference(s):
- TG DL, Req 40
- OpenSearch
Test type:
Automated
Notes
[1] The URI of the OpenSearch Description must be provided in the Download Service. See TG Requirement 8 for details.
The namespace prefixes used as described in README.md.
Abbreviation | XPath expression |
---|---|
url element | /os:OpenSearchDescription/os:Url |
self url | /os:OpenSearchDescription/os:Url[@rel='self' and @type='application/opensearchdescription+xml']/@template |