Home Documents for HTTP Services: XML Syntax
draft-wilde-home-xml-00

The information below is for an old version of the document
Document Type Active Internet-Draft (individual)
Author Erik Wilde 
Last updated 2013-04-01
Stream (None)
Intended RFC status (None)
Formats pdf htmlized (tools) htmlized bibtex
Stream Stream state (No stream defined)
Consensus Boilerplate Unknown
RFC Editor Note (None)
IESG IESG state I-D Exists
Telechat date
Responsible AD (None)
Send notices to (None)
Network Working Group                                           E. Wilde
Internet-Draft                                                       EMC
Intended status: Informational                             April 1, 2013
Expires: October 3, 2013

              Home Documents for HTTP Services: XML Syntax
                        draft-wilde-home-xml-00

Abstract

   The current draft for HTTP Home Documents provides a JSON syntax
   only.  This draft provides an XML syntax for the same underlying data
   model, so that the concept of HTTP Home Documents can be consistently
   exposed in both JSON- and XML-based HTTP services.

Note to Readers

   Please discuss this draft on the apps-discuss mailing list [5].

   Online access to all versions and files is available on github [6].

Status of this Memo

   This Internet-Draft is submitted in full conformance with the
   provisions of BCP 78 and BCP 79.

   Internet-Drafts are working documents of the Internet Engineering
   Task Force (IETF).  Note that other groups may also distribute
   working documents as Internet-Drafts.  The list of current Internet-
   Drafts is at http://datatracker.ietf.org/drafts/current/.

   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."

   This Internet-Draft will expire on October 3, 2013.

Copyright Notice

   Copyright (c) 2013 IETF Trust and the persons identified as the
   document authors.  All rights reserved.

   This document is subject to BCP 78 and the IETF Trust's Legal
   Provisions Relating to IETF Documents
   (http://trustee.ietf.org/license-info) in effect on the date of
   publication of this document.  Please review these documents

Wilde                    Expires October 3, 2013                [Page 1]
Internet-Draft             Home Documents XML                 April 2013

   carefully, as they describe your rights and restrictions with respect
   to this document.  Code Components extracted from this document must
   include Simplified BSD License text as described in Section 4.e of
   the Trust Legal Provisions and are provided without warranty as
   described in the Simplified BSD License.

Table of Contents

   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . . . 3
   2.  XML Example . . . . . . . . . . . . . . . . . . . . . . . . . . 3
   3.  XML Schema  . . . . . . . . . . . . . . . . . . . . . . . . . . 4
   4.  IANA Considerations . . . . . . . . . . . . . . . . . . . . . . 6
     4.1.  Media Type application/home+xml . . . . . . . . . . . . . . 6
   5.  Open Issues . . . . . . . . . . . . . . . . . . . . . . . . . . 7
   6.  Normative References  . . . . . . . . . . . . . . . . . . . . . 8
   Author's Address  . . . . . . . . . . . . . . . . . . . . . . . . . 8

Wilde                    Expires October 3, 2013                [Page 2]
Internet-Draft             Home Documents XML                 April 2013

1.  Introduction

   An Internet Draft currently under development [1] proposes the
   concept of "Home Documents for HTTP APIs" and described them as
   follows:

   "This document proposes a 'home document' format for non-browser HTTP
   clients. [...]  The goal of home documents is to serve as a starting
   point for hypermedia APIs, where clients need to have an entry point,
   and then can use the API by following links.  Home documents thus
   serve the same purpose as home pages on web sites: They are stable
   entry points that provide starting points for clients with some
   knowledge of the services linked from them."

   While this general concept of a home document is independent of the
   representation format, the current draft only defines a JSON syntax.
   In order to make this concept available across representations, this
   draft defines an XML syntax for the concepts defined in [1].

   At this point it is undecided whether both drafts will be merged
   eventually, or whether they will both be published as separate
   documents.  Regardless of the final publication setup, it should be
   noted that this draft is only defining the XML syntax, whereas all
   the concepts represented in this syntax are defined by [1].

2.  XML Example

   The following Home Document in XML syntax uses the same data as the
   Home Document shown in Section 3 of [1]:

Wilde                    Expires October 3, 2013                [Page 3]
Internet-Draft             Home Documents XML                 April 2013

   <resources xmlns="urn:ietf:rfc:XXXX">
    <resource rel="http://example.org/rel/widgets">
     <link href="/widgets/"/>
    </resource>
    <resource rel="http://example.org/rel/widget">
     <template href-template="/widgets/{widget_id}">
      <var name="widget_id" URI="http://example.org/param/widget"/>
Show full document text