TOC 
Network Working GroupF. Ellermann
Internet-Draftxyzzy
Intended status: InformationalJuly 04, 2008
Expires: January 5, 2009 


The application/opensearchdescription+xml media type
draft-ellermann-opensearch-01

Status of this Memo

By submitting this Internet-Draft, each author represents that any applicable patent or other IPR claims of which he or she is aware have been or will be disclosed, and any of which he or she becomes aware will be disclosed, in accordance with Section 6 of BCP 79.

Internet-Drafts are working documents of the Internet Engineering Task Force (IETF), its areas, and its working groups. Note that other groups may also distribute working documents as Internet-Drafts.

Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as “work in progress.”

The list of current Internet-Drafts can be accessed at http://www.ietf.org/ietf/1id-abstracts.txt.

The list of Internet-Draft Shadow Directories can be accessed at http://www.ietf.org/shadow.html.

This Internet-Draft will expire on January 5, 2009.

Abstract

This memo defines the application/opensearchdescription+xml media type for OpenSearch descriptions. Atom and XHTML <link rel="search" .../> elements are examples where this media type is used.

Editorial note

In Section 5 (IANA Considerations) RFCXXXX is a placeholder for this memo. This note and the document history (Document History) should be removed before publication. The draft can be discussed on the mailto:opensearch@googlegroups.com mailing list.



Table of Contents

1.  Introduction
    1.1.  link rel="search" example
    1.2.  AddSearchProvider example
2.  TBD
3.  Internationalization Considerations
4.  Security Considerations
5.  IANA Considerations
    5.1.  link rel="search"
    5.2.  application/opensearchdescription+xml
6.  Acknowledgments
7.  References
    7.1.  Normative References
    7.2.  Informative References
Appendix A.  Document History
§  Author's Address
§  Intellectual Property and Copyright Statements




 TOC 

1.  Introduction

OpenSearch descriptions are a way to specify the format of search queries and results for a given topic or purpose. The [XML] (Paoli, J., Bray, T., Maler, E., and C. Sperberg-McQueen, “Extensible Markup Language (XML) 1.0 (Second Edition),” October 2000.) format is supported by various user agents and search engines. Simple OpenSearch descriptions in essence specify the parameters of a Web form for a search query.

A link "search" relation as used in Atom [RFC4287] (Nottingham, M., Ed. and R. Sayre, Ed., “The Atom Syndication Format,” December 2005.), HTML, XHTML, and HTTP [I‑D.nottingham‑http‑link‑header] (Nottingham, M., “Web Linking,” April 2010.) allows auto-discovery of OpenSearch descriptions. User agents supporting this feature will offer to "install" the search description, i.e. make it available together with other installed search descriptions independent of the contexts where those descriptions were found.

Another way to install OpenSearch descriptions is to use a function such as "AddSearchProvider" supported by some Web browsers. What such "installation" procedures actually do depends on the client software, e.g., they could replace the URI of an icon in the description by an equivalent "data:" URI [RFC2397] (Masinter, L., “The "data" URL scheme,” August 1998.) for privacy and other reasons.



 TOC 

1.1.  link rel="search" example

The following example of a "search" relation in the <head> element of an XHTML document allows auto-discovery of an OpenSearch description with title "Demo search" at the URI <http://example.org/demo.xml>:

    <link rel="search"
          href="http://example.org/demo.xml"
          type="application/opensearchdescription+xml"
          title="Demo search" />


 TOC 

1.2.  AddSearchProvider example

A script might allow the installation. The following XHTML example links to the OpenSearch description for manual inspection when the "onclick" approach is not supported:

    <a href="http://example.org/demo.xml"
       onclick="window.external.AddSearchProvider(
                     'http://example.org/demo.xml'); return false"
       title="Add Search Provider">Demo search</a>

The "AddSearchProvider" function is not specified in this memo. For a discussion of "onclick" event handlers and the HTTP header field Content-Script-Language see a relevant specification, e.g., [XHTML] (Pemberton, S., “XHTML 1.0 The Extensible HyperText Markup Language (Second Edition),” August 2002.).



 TOC 

2.  TBD

TBD - this is a DRAFT, see "Status of this Memo" above



 TOC 

3.  Internationalization Considerations

TBD - this is a DRAFT, see "Status of this Memo" above



 TOC 

4.  Security Considerations

TBD - this is a DRAFT, see "Status of this Memo" above



 TOC 

5.  IANA Considerations



 TOC 

5.1.  link rel="search"

Below you find the [I‑D.nottingham‑http‑link‑header] (Nottingham, M., “Web Linking,” April 2010.) registration template for the link "search" relation under http://www.iana.org/assignments/relation/:

Relation name:
search
Description:
a related search resource such as an OpenSearch description
Reference:
RFCXXXX


 TOC 

5.2.  application/opensearchdescription+xml

Below you find the [RFC4288] (Freed, N. and J. Klensin, “Media Type Specifications and Registration Procedures,” December 2005.) registraton template for the subtype "opensearchdescription+xml" of the "application" media type under http://www.iana.org/assignments/media-types/application/:

Type name:
application
Subtype name:
opensearchdescription+xml
Required parameters:
There are no required parameters.
Optional parameters:
charset (defaults to "UTF-8")
Encoding considerations:
Identical to those of "application/xml" as described in [RFC3023] (Murata, M., St. Laurent, S., and D. Kohn, “XML Media Types,” January 2001.); especially "UTF-8" [RFC3629] (Yergeau, F., “UTF-8, a transformation format of ISO 10646,” November 2003.) and its proper subset "US-ASCII" are supposed to work.
For non-ASCII documents served as "text/xml" the "charset" parameter is required; this might be relevant when authors are unable to configure the server hosting their OpenSearch descriptions.
Security considerations:
All general security and privacy considerations for sending queries to servers specified in an URL are applicable. See RFCXXXX Section 4 (Security Considerations) for more info.
Interoperability considerations:
OpenSearch descriptions use the http://a9.com/-/spec/opensearch/1.1/ XML name space, optionally in conjunction with other XML name spaces for extensions or for application specific purposes.
Published specification:
RFCXXXX, http://www.opensearch.org/Specifications
Applications that use this media type:
Various search cients including popular Web browsers, search engines, and software libraries support OpenSearch descriptions.
Additional information:
TBD
Person & email address to contact for further information:
TBD
Intended usage:
COMMON
Restrictions on usage:
TBD
Author:
TBD
Change controller:
IETF


 TOC 

6.  Acknowledgments

DeWitt Clinton did not yet accept the idea that he is supposed to be the author or co-author of this memo... ;-)



 TOC 

7.  References



 TOC 

7.1. Normative References

[RFC3023] Murata, M., St. Laurent, S., and D. Kohn, “XML Media Types,” RFC 3023, January 2001 (TXT).
[RFC3629] Yergeau, F., “UTF-8, a transformation format of ISO 10646,” STD 63, RFC 3629, November 2003 (TXT).
[RFC4288] Freed, N. and J. Klensin, “Media Type Specifications and Registration Procedures,” BCP 13, RFC 4288, December 2005 (TXT).
[I-D.nottingham-http-link-header] Nottingham, M., “Web Linking,” draft-nottingham-http-link-header-09 (work in progress), April 2010 (TXT).


 TOC 

7.2. Informative References

[RFC2397] Masinter, L., “The "data" URL scheme,” RFC 2397, August 1998 (TXT, HTML, XML).
[RFC3986] Berners-Lee, T., Fielding, R., and L. Masinter, “Uniform Resource Identifier (URI): Generic Syntax,” STD 66, RFC 3986, January 2005 (TXT, HTML, XML).
[RFC4287] Nottingham, M., Ed. and R. Sayre, Ed., “The Atom Syndication Format,” RFC 4287, December 2005 (TXT, HTML, XML).
[XML] Paoli, J., Bray, T., Maler, E., and C. Sperberg-McQueen, “Extensible Markup Language (XML) 1.0 (Second Edition),” World Wide Web Consortium Recommendation REC-xml-20001006, October 2000.
[XHTML] Pemberton, S., “XHTML 1.0 The Extensible HyperText Markup Language (Second Edition),” World Wide Web Consortium Recommendation REC-xhtml1-20020801, August 2002.
[W3C.REC-xml-names-20060816] Hollander, D., Layman, A., and T. Bray, “Namespaces in XML 1.0 (Second Edition),” World Wide Web Consortium FirstEdition REC-xml-names-20060816, August 2006 (HTML).


 TOC 

Appendix A.  Document History

Changes in version 01:

Changes in version 00:



 TOC 

Author's Address

  Frank Ellermann
  xyzzy
  Hamburg, Germany
Email:  hmdmhdfmhdjmzdtjmzdtzktdkztdjz@gmail.com
URI:  http://purl.net/xyzzy/


 TOC 

Full Copyright Statement

Intellectual Property

Acknowledgment