Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 1.41 KB

A.35.TGR40.openSearchSelfreference.md

File metadata and controls

32 lines (19 loc) · 1.41 KB

OpenSearch Description provides URI to itself

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):

Test type:

Automated

Notes

[1] The URI of the OpenSearch Description must be provided in the Download Service. See TG Requirement 8 for details.

Contextual XPath references

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