<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>
<!--<!DOCTYPE rfc SYSTEM "rfc2629.dtd">-->
<?rfc toc="yes"?>
<?rfc symrefs="yes"?>
<?rfc sortrefs="yes"?>
<?rfc compact="yes"?>
<?rfc compact="yes"?>
<?rfc subcompact="no"?>
<?rfc comments="yes"?>
<?rfc inline="yes"?>
<?rfc-ext parse-xml-in-artwork="yes" ?>
<?rfc-ext allow-markup-in-artwork="yes" ?>

<rfc xmlns:x='http://purl.org/net/xml2rfc/ext' xmlns:ed="http://greenbytes.de/2002/rfcedit" ipr="full3978" docName="draft-reschke-webdav-mount-00" category="std">
  <x:link rel="up" href="http://greenbytes.de/tech/webdav/#draft-reschke-webdav-mount"/>
  <x:link rel="next" href="http://greenbytes.de/tech/webdav/draft-reschke-webdav-mount-01.html"/>
  <x:link rel="Alternate" title="draft 00" href="http://greenbytes.de/tech/webdav/draft-reschke-webdav-mount-00.html"/>
  <x:link rel="Alternate" title="draft 01" href="http://greenbytes.de/tech/webdav/draft-reschke-webdav-mount-01.html"/>
  <x:link rel="Alternate" title="draft 02" href="http://greenbytes.de/tech/webdav/draft-reschke-webdav-mount-02.html"/>
  <x:link rel="Alternate" title="draft 03" href="http://greenbytes.de/tech/webdav/draft-reschke-webdav-mount-03.html"/>
  <x:link rel="Alternate" title="draft 04" href="http://greenbytes.de/tech/webdav/draft-reschke-webdav-mount-04.html"/>
  <x:link rel="Alternate" title="draft 05" href="http://greenbytes.de/tech/webdav/draft-reschke-webdav-mount-05.html"/>
  <x:link rel="Alternate" title="(latest)" href="http://greenbytes.de/tech/webdav/draft-reschke-webdav-mount-latest.html"/>
	<front>
  <title abbrev="Mounting WebDAV servers">Mounting WebDAV (Web Distributed Authoring and Versioning) servers</title>

  <author initials="J. F." surname="Reschke" fullname="Julian F. Reschke">
    <organization abbrev="greenbytes">greenbytes GmbH</organization>
    <address>
      <postal>
        <street>Salzmannstrasse 152</street>
        <city>Muenster</city><region>NW</region><code>48159</code>
        <country>Germany</country>
      </postal>
      <phone>+49 251 2807760</phone>	
      <facsimile>+49 251 2807761</facsimile>	
      <email>julian.reschke@greenbytes.de</email>	
      <uri>http://greenbytes.de/tech/webdav/</uri>	
    </address>
  </author>

  <date month="August" year="2005"/>
  
  <abstract>
    <t>
      This document specifies a mechanism and a document format that enables
      Web Distributed Authoring and Versioning (WebDAV) servers to send "mounting" information to a WebDAV client.  The
      protocol is designed to work on any platform and with any combination
      of browser and WebDAV client, relying solely on the well-understood
      dispatch of documents through their MIME type. 
    </t>
  </abstract>
  
  <note title="Editorial Note (To be removed by RFC Editor before publication)">
    <t>
      Please send comments to the Distributed Authoring and Versioning (WebDAV)
      working group at <eref target="mailto:w3c-dist-auth@w3.org"/>, which may
      be joined by sending a message with subject "subscribe" to
      <eref target="mailto:w3c-dist-auth-request@w3.org"/>.  Discussions of the
      WEBDAV working group are archived at
      <eref target="http://lists.w3.org/Archives/Public/w3c-dist-auth/"/>.
    </t>
    <t>
      Note that although discussion takes place on the WebDAV working
      group's mailing list, this is not a working group document.
    </t>
    <t>
      XML versions, latest edits and the issues list for this document
      are available from <eref target="http://greenbytes.de/tech/webdav/#draft-reschke-webdav-mount"/>.
    </t>
  </note>
    
  </front>

	<middle>
  
<section title="Introduction">
<t>
  By definition, a WebDAV server (<xref target="RFC2518"/>) is an HTTP
  server as well (<xref target="RFC2616"/>).  Most WebDAV servers can be
  (at least partly) operated from an HTML-based user interface in a web browser.  However,
  it is frequently desirable to be able to switch from an HTML-based view to
  a presentation provided by a native WebDAV client, directly supporting 
  the authoring features defined in WebDAV and related specifications.
</t>
<t>
  For completeness, <xref target="alternative.approaches"/> lists other
  approaches that have been implemented in existing clients.
</t>
<t>
  
</t>
</section>
  
<section title="Terminology" anchor="terminology">
<t>
  The terminology used here follows and extends that in the WebDAV Distributed
  Authoring Protocol specification <xref target="RFC2518"/>.
</t>
<t>
  The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD",
  "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be
  interpreted as described in <xref target="RFC2119"/>. 
</t>
<t>
  This document uses XML DTD fragments 
  (<xref target="XML"/>) as a purely notational convention.  In particular:
  <list style="symbols">
    <t>Element names use the namespace "http://purl.org/NET/webdav/mount".  When
    an XML element type in this namespace is referenced in this document outside
    of the context of an XML fragment, the string "dm:" will be prefixed to the element name.
    </t>
    <t>Element ordering is irrelevant.</t>
    <t>Extension elements/attributes (elements/attributes not already defined
    as valid child elements) may be added anywhere, except when explicitly
    stated otherwise.</t> 
  </list>
</t>
</section>

<section title="Format">
<t>
  A WebDAV mount request is encoded in a specific XML format (<xref target="XML"/>)
  with a well-defined MIME type (see <xref target="mime.type.registration"/>).
  The MIME type allows user agents to dispatch the content to a handler
  specific to the system's WebDAV client. 
</t>
<t>
  The elements defined below use the namespace "http://purl.org/NET/webdav/mount".
</t>
<figure><artwork>
&lt;!ELEMENT mount (url, open?, username?) >

&lt;!ELEMENT url (#PCDATA) >
&lt;!-- PCDATA value: scheme ":" hier-part, as defined in section 3 of
     <xref target="RFC3986"/> -->

&lt;!ELEMENT open (#PCDATA) >
&lt;!-- PCDATA value: path, as defined in section 3 of
     <xref target="RFC3986"/> -->

&lt;!ELEMENT username (#PCDATA) >
</artwork></figure>

<section title="dm:mount" anchor="ELEMENT_mount">
<iref item="dm:mount" primary="true"/>
<t>
  The &lt;dm:mount> element acts as container for all the remaining elements
  defined by this protocol. 
</t>
</section>

<section title="dm:url" anchor="ELEMENT_url">
<iref item="dm:url" primary="true"/>
<t>
  The mandatory &lt;dm:url> element provides the HTTP URL of the WebDAV collection
  that should be mounted by the client. 
</t>
</section>

<section title="dm:open" anchor="ELEMENT_open">
<iref item="dm:opent" primary="true"/>
<t>
  The optional &lt;dm:open> element instructs the client to display the specified
  child collection; it's URL is computed by concatenating this element's
  value with the URL obtained from the <xref target="ELEMENT_url">&lt;dm:url></xref> element.
</t>
</section>

<section title="dm:username" anchor="ELEMENT_username">
<iref item="dm:username" primary="true"/>
<t>
  The server can use the optional &lt;dm:username> element to specify the name
  of the authenticated principal.  A client can use this value to select
  a matching mount point (different users may have mounted the URL with
  different credentials under different local mount points) or to provide
  a meaningful default for a authentication dialogue.
</t>
</section>

</section>

<section title="Example">
<t>
  In the example below, the server instructs the user agent to
  mount the WebDAV URL "http://www.example.com/documents" in it's WebDAV
  client, and then to display the contents the child collection "/user42/inbox", identified
  by the URL ""http://www.example.com/documents/user42/inbox".
</t>
<figure><preamble>
&gt;&gt; Request:
</preamble>
<artwork>
GET /Coll/&amp;mount-me HTTP/1.1
Host: www.example.com
</artwork>
</figure> 
<figure><preamble>
&gt;&gt; Response:
</preamble><artwork>
HTTP/1.1 200 OK
Content-Type: application/davmount+xml
Content-Length: xxx

&lt;dm:mount xmlns:dm="http://purl.org/NET/webdav/mount">
  &lt;dm:url>http://www.example.com/documents&lt;/dm:url>
  &lt;dm:open>/user42/inbox&lt;/dm:open>
&lt;/dm:mount>
</artwork></figure> 
</section>

  
<section title="Internationalization Considerations" anchor="internationalization.considerations">
<t>
  This document does not introduce any new internationalization considerations
  beyond those discussed in <xref target="RFC2518"/>, Section 16.
</t>
</section>

  <section title="IANA Considerations">
  
    <section title="MIME type registration" anchor="mime.type.registration">
    <iref item="MIME type" subitem="application/mount+xml" primary="true"/>
    <iref item="application/mount+xml MIME type" primary="true"/>
    
      <t>
        MIME media type name:
        <list>
          <t>application</t>
        </list>
      </t>
      <t>
        MIME subtype name:
        <list>
          <t>davmount+xml</t>
        </list>
      </t>
      <t>
        Mandatory parameters:
        <list>
          <t>none</t>
        </list>
      </t>
      <t>
        Optional parameters:
        <list>
          <t>"charset":
            This parameter has identical semantics to the charset parameter of
            the "application/xml" media type as specified in <xref target="RFC3023"/>.</t>
        </list>
      </t>
      <t>
        Encoding considerations:
        <list>
          <t>Identical to those of "application/xml" as described in <xref target="RFC3023"/>, section 3.2.</t>
        </list>
      </t>
      <t>
        Security considerations:
        <list>
          <t>As defined in this specification.  
              In addition, as this media type uses the "+xml" convention, it shares the same security considerations as described in <xref target="RFC3023"/>, section 10.</t>
        </list>
      </t>
      <t>
        Interoperability considerations:
        <list>
          <t>There are no known interoperability issues.</t>
        </list>
      </t>
      <t>
        Published specification:
        <list>
          <t> This specification.</t>
        </list>
      </t>
      <t>
        Additional information:
      <list>
        <t>
          Magic number(s):
          <list>
            <t>As specified for "application/xml" in <xref target="RFC3023"/>, section 3.2.</t>
          </list>
        </t>
        <t>
          File extension:
          <list>
            <t>.davmount</t>
          </list>
        </t>
        <t>
          Fragment identifiers:
          <list>
            <t>As specified for "application/xml" in <xref target="RFC3023"/>, section 5.</t>
          </list>
        </t>
        <t>
          Base URI:
          <list>
            <t>As specified in <xref target="RFC3023"/>, section 6.</t>
          </list>
        </t>
        <t>
          Macintosh File Type code:
          <list>
            <t>TEXT</t>
          </list>
        </t>
      </list>
    </t>
    <t>
      Person and email address to contact for further information:
      <list>
        <t>Julian Reschke &lt;julian.reschke@greenbytes.de&gt;</t>
      </list>
    </t>
    <t>
      Intended usage:
      <list>
        <t>COMMON</t>
      </list>
    </t>
    <t>
      Author/Change controller:
      <list>
        <t>IESG</t>
      </list>
    </t>

    </section>
  
  </section>
  
  

<section title="Security Considerations" anchor="security.considerations">
<t>
  All security considerations connected to HTTP/WebDAV and XML apply for
  this specification as well, namely <xref target="RFC2518"/> (Section 17)
  and <xref target="RFC3470"/> (Section 7).
</t>
<t>
  In addition, client implementors must be careful when implementing the
  &lt;dm:open> element (see <xref target="ELEMENT_open"/>).  It MUST NOT
  be used to initiate any action beyond displaying the contents of a 
  WebDAV collection.
</t>
</section>

</middle>
  
  <back>
    <references title="Normative References">

<reference anchor="RFC2119">
  <front>
    <title abbrev="RFC Key Words">Key words for use in RFCs to Indicate Requirement Levels</title>
    <author initials="S." surname="Bradner" fullname="Scott Bradner">
    <organization>Harvard University</organization>
    <address>
      <email>sob@harvard.edu</email>
    </address></author>
    <date month="March" year="1997"/>
  </front>
  <seriesInfo name="BCP" value="14"/>
  <seriesInfo name="RFC" value="2119"/>
</reference>

<reference anchor="RFC2518">
  <front>
    <title>HTTP Extensions for Distributed Authoring -- WEBDAV</title>
    <author initials="Y." surname="Goland" fullname="Y. Goland">
      <organization>Microsoft Corporation</organization>
      <address><email>yarong@microsoft.com</email></address>
    </author>
    <author initials="E." surname="Whitehead" fullname="E. J. Whitehead, Jr.">
      <organization abbrev="UC Irvine">Dept. Of Information and Computer Science, University of California, Irvine</organization>
    	<address><email>ejw@ics.uci.edu</email></address>
    </author>
    <author initials="A." surname="Faizi" fullname="A. Faizi">
      <organization abbrev="Netscape">Netscape</organization>
      <address><email>asad@netscape.com</email></address>
    </author>
    <author initials="S.R." surname="Carter" fullname="S. R. Carter">
      <organization abbrev="Novell">Novell</organization>
      <address><email>srcarter@novell.com</email></address>
    </author>
    <author initials="D." surname="Jensen" fullname="D. Jensen">
      <organization abbrev="Novell">Novell</organization>
      <address><email>dcjensen@novell.com</email></address>
    </author>
    <date month="February" year="1999"/>
  </front>
  <seriesInfo name="RFC" value="2518"/>
</reference>

<reference anchor="RFC2616">
  <front>
    <title>Hypertext Transfer Protocol -- HTTP/1.1</title>
    <author initials="R." surname="Fielding" fullname="R. Fielding">
      <organization>University of California, Irvine</organization>
      <address><email>fielding@ics.uci.edu</email></address>
    </author>
    <author initials="J." surname="Gettys" fullname="J. Gettys">
      <organization>W3C</organization>
      <address><email>jg@w3.org</email></address>
    </author>
    <author initials="J." surname="Mogul" fullname="J. Mogul">
      <organization>Compaq Computer Corporation</organization>
      <address><email>mogul@wrl.dec.com</email></address>
    </author>
    <author initials="H." surname="Frystyk" fullname="H. Frystyk">
      <organization>MIT Laboratory for Computer Science</organization>
      <address><email>frystyk@w3.org</email></address>
    </author>
    <author initials="L." surname="Masinter" fullname="L. Masinter">
      <organization>Xerox Corporation</organization>
      <address><email>masinter@parc.xerox.com</email></address>
    </author>
    <author initials="P." surname="Leach" fullname="P. Leach">
      <organization>Microsoft Corporation</organization>
      <address><email>paulle@microsoft.com</email></address>
    </author>
    <author initials="T." surname="Berners-Lee" fullname="T. Berners-Lee">
      <organization>W3C</organization>
      <address><email>timbl@w3.org</email></address>
    </author>
    <date month="June" year="1999"/>
  </front>
  <seriesInfo name="RFC" value="2616"/>
</reference>

<reference anchor='RFC3023'>
  <front>
    <title>XML Media Types</title>
    <author initials='M.' surname='Murata' fullname='M. Murata'>
      <organization>IBM Tokyo Research Laboratory</organization> 
      <address><email>mmurata@trl.ibm.co.jp</email></address>
    </author>
    <author initials='S.' surname='St.Laurent' fullname='Simon  St.Laurent'>
      <organization>simonstl.com</organization>
      <address><email>simonstl@simonstl.com</email></address>
    </author>
    <author initials='D.' surname='Kohn' fullname='D. Kohn'>
      <organization>Skymoon Ventures</organization>
      <address><email>dan@dankohn.com</email></address>
    </author>
    <date year='2001' month='January' />
  </front>
  <seriesInfo name='RFC' value='3023' />
</reference>

<reference anchor="XML" target="http://www.w3.org/TR/2004/REC-xml-20040204">
  <front>
    <title>Extensible Markup Language (XML) 1.0 (Third Edition)</title>
    <author initials="T." surname="Bray" fullname="Tim Bray">
      <organization>Textuality and Netscape</organization>
      <address>
        <email>tbray@textuality.com</email>
      </address>
    </author>
    <author initials="J." surname="Paoli" fullname="Jean Paoli">
      <organization>Microsoft</organization>
      <address>
        <email>jeanpa@microsoft.com</email>
      </address>
    </author>
    <author initials="C.M." surname="Sperberg-McQueen" fullname="C. M. Sperberg-McQueen">
      <organization>University of Illinois at Chicago and Text Encoding Initiative</organization>
      <address>
        <email>cmsmcq@uic.edu</email>
      </address>
    </author>
    <author initials="E." surname="Maler" fullname="Eve Maler">
      <organization>Sun Microsystems</organization>
      <address>
        <email>eve.maler@east.sun.com</email>
      </address>
    </author>
    <author initials="F." surname="Yergeau" fullname="Francois Yergeau">
      <organization/>
      <address>
        <email>francois@yergeau.com</email>
      </address>
    </author>
    <date day="4" month="February" year="2004"/>
  </front>
  <seriesInfo name="W3C" value="REC-xml-20040204"/>
</reference>

<reference anchor="RFC3986">
  <front>
    <title abbrev="URI Generic Syntax">Uniform Resource Identifier (URI): Generic Syntax</title>
    <author initials="T." surname="Berners-Lee" fullname="Tim Berners-Lee">
      <organization abbrev="W3C/MIT">World Wide Web Consortium</organization>
      <address>
        <email>timbl@w3.org</email>
      </address>
    </author>
    <author initials="R." surname="Fielding" fullname="Roy T. Fielding">
      <organization abbrev="Day Software">Day Software</organization>
      <address>
        <email>fielding@gbiv.com</email>
      </address>
    </author>
    <author initials="L." surname="Masinter" fullname="Larry Masinter">
      <organization abbrev="Adobe">Adobe Systems Incorporated</organization>
      <address>
        <email>LMM@acm.org</email>
      </address>
    </author>
    <date month="January" year="2005"/>
  </front>
  <seriesInfo name="STD" value="66"/>
  <seriesInfo name="RFC" value="3986"/>
</reference>

</references>
<references title="Informative References">

<reference anchor="RFC3470">
<front>
  <title abbrev="XML Within IETF Protocols">
   Guidelines for the Use of Extensible Markup Language (XML) within IETF Protocols</title>
  
  <author initials="S." surname="Hollenbeck" fullname="Scott Hollenbeck">
    <organization>VeriSign, Inc.</organization>
    <address>
      <postal>
        <street>21345 Ridgetop Circle</street>
        <city>Dulles</city>
        <region>VA</region>
        <code>20166-6503</code>
        <country>US</country>
      </postal>
      <phone>+1 703 948 3257</phone>
      <email>shollenbeck@verisign.com</email>
    </address>
  </author>
  
  <author initials="M." surname="Rose" fullname="Marshall T. Rose">
    <organization>Dover Beach Consulting, Inc.</organization>
    <address>
      <postal>
        <street>POB 255268</street>
        <city>Sacramento</city>
        <region>CA</region>
        <code>95865-5268</code>
        <country>US</country>
      </postal>
      <phone>+1 916 483 8878</phone>
      <email>mrose@dbc.mtview.ca.us</email>
    </address>
  </author>
  
  <author initials="L." surname="Masinter" fullname="Larry Masinter">
    <organization>Adobe Systems Incorporated</organization>
    <address>
      <postal>
        <street>Mail Stop W14</street>
        <street>345 Park Ave.</street>
        <city>San Jose</city>
        <region>CA</region>
        <code>95110</code>
        <country>US</country>
      </postal>
      <phone>+1 408 536 3024</phone>
      <email>LMM@acm.org</email>
      <uri>http://larry.masinter.net</uri>
    </address>
  </author>
  
  <date year="2003" month="January" day="23"/>
  </front>
  <seriesInfo name="RFC" value="3470"/>
  <seriesInfo name="BCP" value="70"/>
</reference>

<reference anchor='WEBARCH' target="http://www.w3.org/TR/2004/REC-webarch-20041215/">
  <front>
    <title>Architecture of the World Wide Web, Volume One</title>
    <author initials='N.' surname='Walsh' fullname='Norman Walsh'>
        <organization>Sun Microsystems, Inc.</organization>
    </author>
    <author initials='I.' surname='Jacobs' fullname='Ian Jacobs'>
        <organization>W3C</organization>
    </author>
    <date month='December' day='15' year='2004' />
  </front>
  <seriesInfo name='W3C REC' value='REC-webarch-20041215' />
</reference>

</references>
  
  <section title="Alternative approaches" anchor="alternative.approaches">
  
    <section title="...through HTML/CSS extensions">
    <t>     
      Microsoft Internet Explorer implements a CSS extension that allows
      switching to it's own WebDAV client ("Webfolder", see
      <eref target="http://msdn.microsoft.com/workshop/author/behaviors/reference/behaviors/anchor.asp"/>).  However, at the time
      of this writing this extension was not implemented by any other
      user agent.
    </t>
    </section>
  
    <section title="...through custom URI schemes">
    <t>     
      The "kio" library of the "K Desktop Enviroment" (<eref target="http://www.kde.org/"/>) uses
      the URI scheme "webdav" to dispatch to the system's WebDAV client.  This URI scheme
      is not registered, nor supported on other platforms.  Furthermore,
      W3C's "Architecture of the World Wide Web, Volume One"
      explicitly advises against defining new schemes when existing schemes can be
      used:
      <list><t>
       "A specification SHOULD reuse an existing URI scheme (rather than create a new one)
      when it provides the desired properties of identifiers and their relation to resources."
      </t></list>
      (see <xref target="WEBARCH"/>, Section 2.4)
     </t>
    </section>
  
  </section>  
  
  </back>
  
</rfc>