Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 1.37 KB

A.36.TGR41.openSearchGenericSearchQueries.md

File metadata and controls

32 lines (19 loc) · 1.37 KB

OpenSearch Description provides URL for generic search queries

Purpose:

The OpenSearch description must contain a "Url" element that describes a template URL for generic search queries. The value of the "rel" attribute of this element must be "results", the value of the "type" attribute must be "text/html".

Test method

Reference(s):

Test type:

Automated

Notes

  • Comment to the TG text: It would be useful to also include a generic wild-card search returning the results as Atom feed in addition to HTML.

Contextual XPath references

The namespace prefixes used as described in README.md.

Abbreviation XPath expression
url element /os:OpenSearchDescription/os:Url
generic search queries url /os:OpenSearchDescription/os:Url[@rel='results' and @type='text/html']/@template