<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>
<?rfc toc="yes"?>
<?rfc symrefs="yes"?>
<?rfc sortrefs="yes"?>
<?rfc compact="yes"?>
<?rfc subcompact="no"?>
<?rfc-ext parse-xml-in-artwork="yes" ?>

<rfc xmlns:x='http://purl.org/net/xml2rfc/ext' xmlns:ed="http://greenbytes.de/2002/rfcedit" ipr="full3667" docName="draft-reschke-webdav-property-datatypes-07" category="info">
  <x:link rel="Start" href="http://greenbytes.de/tech/webdav/#draft-reschke-webdav-property-datatypes"/>
  <x:link rel="Bookmark" title="IETF WEBDAV Working Group" href="http://ftp.ics.uci.edu/pub/ietf/webdav/"/>
  <x:link rel="prev" href="http://greenbytes.de/tech/webdav/draft-reschke-webdav-property-datatypes-06.html"/>
  <x:link rel="next" href="http://greenbytes.de/tech/webdav/draft-reschke-webdav-property-datatypes-08.html"/>
  <x:link rel="last" href="http://greenbytes.de/tech/webdav/draft-reschke-webdav-property-datatypes-latest.html"/>
  <x:link rel="Alternate" title="(latest)" href="http://greenbytes.de/tech/webdav/draft-reschke-webdav-property-datatypes-latest.html"/>
  <x:link rel="Alternate" title="draft 09" href="http://greenbytes.de/tech/webdav/draft-reschke-webdav-property-datatypes-09.html"/>
  <x:link rel="Alternate" title="draft 08" href="http://greenbytes.de/tech/webdav/draft-reschke-webdav-property-datatypes-08.html"/>
  <x:link rel="Alternate" title="draft 07" href="http://greenbytes.de/tech/webdav/draft-reschke-webdav-property-datatypes-07.html"/>
  <x:link rel="Alternate" title="draft 06" href="http://greenbytes.de/tech/webdav/draft-reschke-webdav-property-datatypes-06.html"/>
  <x:link rel="Alternate" title="draft 05" href="http://greenbytes.de/tech/webdav/draft-reschke-webdav-property-datatypes-05.html"/>
  <x:link rel="Alternate" title="draft 04" href="http://greenbytes.de/tech/webdav/draft-reschke-webdav-property-datatypes-04.html"/>
  <x:link rel="Alternate" title="draft 03" href="http://greenbytes.de/tech/webdav/draft-reschke-webdav-property-datatypes-03.html"/>
  <x:link rel="Alternate" title="draft 02" href="http://greenbytes.de/tech/webdav/draft-reschke-webdav-property-datatypes-02.html"/>
  <x:link rel="Alternate" title="draft 01" href="http://greenbytes.de/tech/webdav/draft-reschke-webdav-property-datatypes-01.html"/>
  <x:link rel="Alternate" title="draft 00" href="http://greenbytes.de/tech/webdav/draft-reschke-webdav-property-datatypes-00.html"/>
	<front>
    	<title>Datatypes for WebDAV properties</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="2004"/>
<!--		<workgroup>WEBDAV Working Group</workgroup> -->
    <abstract>
      <t>
        This specification extends the Web Distributed Authoring Protocol (WebDAV) to 
        support 
        <ed:replace datetime="2004-08-28" ed:resolves="strip-flags-and-displaynames"><ed:del>
        both datatyping and some amount of meta information on property values.
        Protocol elements are defined to let clients and servers specify the datatype and
        meta information of a property, and to
        instruct the WebDAV method PROPFIND to return datatype and meta information.
        </ed:del>
        <ed:ins>
        datatyping.  Protocol elements are defined to let clients and servers
        specify the datatype, and to
        instruct the WebDAV method PROPFIND to return datatype information.
        </ed:ins>
        </ed:replace>
      </t>
      <ed:replace ed:resolves="edit" datetime="2004-07-08"><ed:del>
  		<t>
        Distribution of this document is unlimited. Please send comments to the 
        Distributed Authoring and Versioning (WebDAV) working group at <eref target="mailto:w3c-dist-auth@w3.org">w3c-dist-auth@w3.org</eref>, which may be joined by sending a message with subject 
        "subscribe" to <eref target="mailto:w3c-dist-auth-request@w3.org?subject=subscribe">w3c-dist-auth-request@w3.org</eref>.
		  </t>
      <t>
        Discussions of the WEBDAV working group are archived at URL: 
        <eref target="http://lists.w3.org/Archives/Public/w3c-dist-auth/">http://lists.w3.org/Archives/Public/w3c-dist-auth/</eref>.               
     	</t>
      </ed:del></ed:replace>
    </abstract>
    <ed:replace ed:resolves="edit" datetime="2004-07-08"><ed:ins>
    <note title="Editorial Note">
      <t>
        <spanx>(To be removed before publication as RFC):</spanx>
      </t>
      <t>
        Please send comments to the 
        Distributed Authoring and Versioning (WebDAV) working group at <eref target="mailto:w3c-dist-auth@w3.org">w3c-dist-auth@w3.org</eref>, which may be joined by sending a message with subject 
        "subscribe" to <eref target="mailto:w3c-dist-auth-request@w3.org?subject=subscribe">w3c-dist-auth-request@w3.org</eref>.
        Discussions of the WEBDAV working group are archived at 
        <eref target="http://lists.w3.org/Archives/Public/w3c-dist-auth/">http://lists.w3.org/Archives/Public/w3c-dist-auth/</eref>.
      </t>
    </note>
    </ed:ins></ed:replace>
	</front>

	<middle>

<ed:issue name="edit" type="edit" status="open">
  <ed:item entered-by="julian.reschke@greenbytes.de" date="2004-07-08">
    Umbrella issue for editorial fixes/enhancements.
  </ed:item>
</ed:issue>
<ed:issue name="strip-flags-and-displaynames" type="edit" status="closed">
  <ed:item entered-by="julian.reschke@greenbytes.de" date="2004-08-28">
    Remove support for property flags and displaynames and move them
    into a separate spec (these will be defined in a separate document).
    Also remove DASL extensions.
  </ed:item>
  <ed:resolution datetime="2004-08-28">
    Done.
  </ed:resolution>
</ed:issue>

<section title="Introduction">
<t>
  This specification builds on the infrastructure provided by 
  the WebDAV Distributed Authoring Protocol, adding support for data-typed
  properties<ed:replace datetime="2004-08-28" ed:resolves="strip-flags-and-displaynames"><ed:del>, some property flags and display names for properties</ed:del></ed:replace>.
</t>
<t>
	Although servers must support XML content in property values, it may be 
  desirable to persist values as scalar values when possible, and to expose
  the data's type when the property value is returned to the client. The client
  is free to ignore this information, but it may be able to take advantage of it
  when modifying a property.
</t>
<t>
	On the other hand, when setting new properties, it can be desirable to
  pass data type information along with the value. A server can take advantage
  of this information to optimize storage and to perform additional parsing (for
  instance of dates). Servers that support searching can also take advantage
  of known data types when doing comparisons and sorting.
</t>
<ed:replace datetime="2004-08-28" ed:resolves="strip-flags-and-displaynames"><ed:del>
<t>
  Furthermore, it may be desirable to add some amount of additional meta
  information to properties in order to enable generic WebDAV clients to
  provide a meaningful user interface for editing these properties. In
  particular, clients can take advantage of knowing that particular properties
  are not generally suitable for edits through humans ("hidden"), or that
  they can not be changed ("protected").
</t>
<t>
  Finally, generic clients that allow editing of arbitrary properties need 
  to display a "display name" for each property. This document defines a new
  protected live property, "pf:property-displayname-set", that provides this
  information.
</t>
</ed:del></ed:replace>
</section>


<section title="Notational Conventions">
<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>
	The term "property element" refers to the XML element that identifies
  a particular property, for instance
</t>
<figure>
<artwork>   &lt;getcontentlength xmlns="DAV:" /&gt;</artwork>
</figure>
<t>
	The term "prop element" is used for the WebDAV "prop" element as defined
  in section 12.11 of <xref target="RFC2518"/>.
</t>
<t>
	The XML representation of schema components uses
  a vocabulary identified by the namespace name "http://www.w3.org/2001/XMLSchema".
  For brevity, the text and examples in this specification use the prefix "xs:"
  to stand for this namespace; in practice, any prefix can be used.
	"XML Schema: Structures" (<xref target="XS1"/>) also defines several
  attributes for direct use in any XML documents. These attributes are in a
  different namespace named "http://www.w3.org/2001/XMLSchema-instance".
  For brevity, the text and examples in this specification use the prefix "xsi:"
  to stand for this latter namespace; in practice, any prefix can be used.
</t>
<ed:replace datetime="2004-08-28" ed:resolves="strip-flags-and-displaynames"><ed:del>
<t>
  This document defines extension elements and attributes that could ultimately become 
  part of the core WebDAV protocol. Being just an individual
  submission, it currently defines them in the proprietary namespace
</t>
<figure><artwork>
  http://sapportals.com/xmlns/cm/webdav
</artwork></figure>
<t>
  instead of the "DAV:" namespace. It uses a prefix of "pf:"
  for referring to elements or attributes in this namespace. However, WebDAV server and clients
  are free to use any prefix, provided that there is a namespace declaration that
  binds the prefix to the URI of the same namespace.
</t>
</ed:del></ed:replace>
</section>



<section title="Overview">

<section title="Data types">
<t>
  Although WebDAV property types can be anything that can be marshalled
  as content of an XML element, in many cases they actually are simple
  types like integers, booleans or dates. "XML Schema Part 2: Datatypes"
  <xref target="XS2"/> defines a set of simple types which can be
  used as a basis for supplying type information to attributes.  
</t>
<t>
	Data type information is represented using the attribute "type" from the
  XML Schema namespace "http://www.w3.org/2001/XMLSchema-instance".
	In XML Schema, data types are qualified names, and the XML Schema 
  recommendation defines a set of built-in datatypes (section 3 of
  <xref target="XS2"/>), defined in the
  namespace "http://www.w3.org/2001/XMLSchema".
</t>
<t>
	To avoid unnecessary verbosity, data type information should only be
  supplied if it adds usable information to the protocol. In particular,
  type information is not required for live properties defined in
  WebDAV <xref target="RFC2518"/> and for properties of type
  "xs:string".
</t>
<t>
	A server may implement any combination of datatypes, both from the XML
  Schema recommendation and possibly from other namespaces.
</t>
<t>
	Note that a particular property can be typed for a number of reasons:
  <list style="symbols">
  	<t>The property is a live property with server-defined semantics and
    value space.</t>
    <t>The property may have been set using a non-WebDAV protocol that the
    server understands in addition to WebDAV.</t>
    <t>The type may have been specified in an extended PROPPATCH method
    as defined in <xref target="METHOD_PROPPATCH"/>.</t>
  </list>  
</t>
</section>

<ed:replace datetime="2004-08-28" ed:resolves="strip-flags-and-displaynames"><ed:del>
<section title="Property flags">
<t>
  This specification defines semantics for two specific property flags.
</t>
<section title="pf:hidden">
<figure><artwork>
  pf:hidden = "false" | "true"
</artwork></figure>
<t>
  This is a (boolean) display hint for generic user agents. When set to "false", it
  indicates that it is generally not useful to allow users to modify this
  property.
</t>
</section>
<section title="pf:protected">
<figure><artwork>
  pf:protected = "false" | "true"
</artwork></figure>
<t>
  When set to "true", this flag indicates that this property is protected (as
  defined in <xref target="RFC3253"/>, section 1.4.2). A user agent may display
  this property, but should not allow edits on it.
</t>
</section>
</section>

<section title="Property display names">
<t>
  For the purpose of marshalling property displayname information, this
  specification introduces a new computed resource property. In accordance
  to <xref target="RFC3253"/>, this property SHOULD not returned upon
  an PROPFIND/allprop request.
</t>
<section title="pf:property-displayname-set property (computed)">
<figure><artwork>
&lt;!ELEMENT pf:property-displayname-set (pf:property-displayname*)&gt;
&lt;!ELEMENT pf:property-displayname (prop, pf:displayname)&gt;
</artwork></figure>
<t>
  The pf:property-displayname-set contains display information about properties
  defined on the resource. The set may not be complete (if the server doesn't
  have display information for particular properties). 
</t>
<figure><artwork>
prop: ANY, see RFC2518
</artwork></figure>
<t>
  The DAV:prop element contains exactly one property element identifying the
  resource property to which the pf:property-displayname element applies.
</t>
<figure><artwork>
&lt;!ELEMENT pf:displayname (#PCDATA) &gt;
</artwork></figure>
<t>
  The pf:displayname element contains the display name for the property.
  Servers MUST indicate the human language of the description using the xml:lang
  attribute and SHOULD consider the HTTP Accept-Language request header when
  selecting one of multiple available languages.
</t>
</section>
</section>
</ed:del></ed:replace>

</section>

<section title="Changes for PROPPATCH method" anchor="METHOD_PROPPATCH">
<section title="Marshalling type information">
<t>
	If the property element has an XML attribute named "xsi:type",
  the server may use this information to select an optimized representation
  for storing the property value. For instance, by specifying 
  a type as "xs:boolean", the client declares the property
  value to be of type boolean (as defined in <xref target="XS2"/>).
  The server may choose any suitable internal format for persisting this
  property, and in particular is allowed to fail the request if the format
  given does not fit the format defined for this type.
</t>
<t>
	The server should indicate successful detection and parsing of the typed value
  by setting the xsi:type attribute on the property element in the response
  body (this implies that it should return a MULTISTATUS status code and
  a &lt;multistatus&gt; response body).
</t>

<section title="Example for successful PROPPATCH">
<figure><preamble>
   &gt;&gt;Request</preamble>
<artwork>
PROPPATCH /bar.html HTTP/1.1
Host: example.org
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;D:propertyupdate xmlns:D="DAV:"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:xs="http://www.w3.org/2001/XMLSchema"
   xmlns:Z="http://ns.example.org/standards/z39.50"&gt;
  &lt;D:set&gt;
    &lt;D:prop&gt;
      &lt;Z:released xsi:type="xs:boolean"&gt;false&lt;/Z:released&gt;
    &lt;/D:prop&gt;
  &lt;/D:set&gt;
&lt;/D:propertyupdate&gt;
</artwork>
</figure>
<figure><preamble>
   &gt;&gt;Response</preamble>
<artwork>
HTTP/1.1 207 Multi-Status
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;D:multistatus xmlns:D="DAV:"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:xs="http://www.w3.org/2001/XMLSchema"
   xmlns:Z="http://ns.example.org/standards/z39.50"&gt;
  &lt;D:response&gt;
    &lt;D:href&gt;http://example.org/bar.html&lt;/D:href&gt;
    &lt;D:propstat&gt;
      &lt;D:prop&gt;&lt;Z:released xsi:type="xs:boolean" /&gt;&lt;/D:prop&gt;
      &lt;D:status&gt;HTTP/1.1 200 OK&lt;/D:status&gt;
    &lt;/D:propstat&gt;
  &lt;/D:response&gt;
&lt;/D:multistatus&gt;
</artwork></figure>
<t>
	In this cases, the xsi:type attribute on the element "Z:released" indicates
  that the server indeed has understood the submitted data type information.
</t>
</section>


<section title="Example for failed PROPPATCH">
<figure><preamble>
   &gt;&gt;Request</preamble>
<artwork>
PROPPATCH /bar.html HTTP/1.1
Host: example.org
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;D:propertyupdate xmlns:D="DAV:"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:xs="http://www.w3.org/2001/XMLSchema"
   xmlns:Z="http://ns.example.org/standards/z39.50"&gt;
  &lt;D:set&gt;
    &lt;D:prop&gt;
      &lt;Z:released xsi:type="xs:boolean"&gt;t&lt;/Z:released&gt;
    &lt;/D:prop&gt;
  &lt;/D:set&gt;
&lt;/D:propertyupdate&gt;
</artwork></figure>
<figure><preamble>
   &gt;&gt;Response</preamble>
<artwork>
HTTP/1.1 207 Multi-Status
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;D:multistatus xmlns:D="DAV:"
   xmlns:Z="http://ns.example.org/standards/z39.50"&gt;
  &lt;D:response&gt;
    &lt;D:href&gt;http://example.org/bar.html&lt;/D:href&gt;
    &lt;D:propstat&gt;
      &lt;D:prop&gt;&lt;Z:released/&gt;&lt;/D:prop&gt;
      &lt;D:status&gt;HTTP/1.1 422 Unprocessable Entity&lt;/D:status&gt;
      &lt;D:responsedescription&gt;
        Does not parse as xs:boolean
      &lt;/D:responsedescription&gt;
    &lt;/D:propstat&gt;
  &lt;/D:response&gt;
&lt;/D:multistatus&gt;
</artwork></figure>
<t>
  In this case the request failed because the supplied value "t" is not 
  a valid representation for a boolean value.
</t>
<t>
	Note that similar error conditions can occur in the standard WebDAV protocol
  even though no data type was specified: for instance, when a client tries to set
  a live property for which only a certain value space is allowed.
</t>
</section>

<section title="Example for succesful PROPPATCH where type information was not preserved">
<figure><preamble>
   &gt;&gt;Request</preamble>
<artwork>
PROPPATCH /bar.html HTTP/1.1
Host: example.org
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;D:propertyupdate xmlns:D="DAV:"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:Z="http://ns.example.org/standards/z39.50"&gt;
  &lt;D:set&gt;
    &lt;D:prop&gt;
      &lt;Z:released xsi:type="Z:custom"&gt;t&lt;/Z:released&gt;
    &lt;/D:prop&gt;
  &lt;/D:set&gt;
&lt;/D:propertyupdate&gt;
</artwork></figure>
<figure><preamble>
   &gt;&gt;Response</preamble>
<artwork>
HTTP/1.1 207 Multi-Status
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;D:multistatus xmlns:D="DAV:"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:Z="http://ns.example.org/standards/z39.50"&gt;
  &lt;D:response&gt;
    &lt;D:href&gt;http://example.org/bar.html&lt;/D:href&gt;
    &lt;D:propstat&gt;
      &lt;D:prop&gt;&lt;Z:released/&gt;&lt;/D:prop&gt;
      &lt;D:status&gt;HTTP/1.1 200 OK&lt;/D:status&gt;
     &lt;/D:propstat&gt;
  &lt;/D:response&gt;
&lt;/D:multistatus&gt;
</artwork></figure>
<t>
  In this case the request succeeded, but the server did not know how to
  handle the data type "Z:custom". Therefore no data type information was
  returned in the response body.
</t>
</section>

</section>

<ed:replace datetime="2004-08-28" ed:resolves="strip-flags-and-displaynames"><ed:del>
<section title="Marshalling property flag information">
<t>
	If the property element has an XML attribute named "pf:hidden", the server
  should persist this as part of the property value.
</t>
<t>
  On the other hand, an XML attribute named "pf:protected" SHOULD be ignored,
  because protected properties MUST NOT be modifiable by PROPPATCH.
</t>

<section title="Example for successful PROPPATCH">
<figure><preamble>
   &gt;&gt;Request</preamble>
<artwork>
PROPPATCH /bar.html HTTP/1.1
Host: example.org
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;D:propertyupdate xmlns:D="DAV:"
   xmlns:pf="http://sapportals.com/xmlns/cm/webdav"
   xmlns:Z="http://ns.example.org/standards/z39.50"&gt;
  &lt;D:set&gt;
    &lt;D:prop&gt;
      &lt;Z:author pf:hidden="false"&gt;Joe User&lt;/Z:author&gt;
      &lt;Z:int-doc-id pf:hidden="true"&gt;ADJSTCR&lt;/Z:int-doc-id&gt;
    &lt;/D:prop&gt;
  &lt;/D:set&gt;
&lt;/D:propertyupdate&gt;
</artwork></figure>
<figure><preamble>
   &gt;&gt;Response</preamble>
<artwork>
HTTP/1.1 207 Multi-Status
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;D:multistatus xmlns:D="DAV:"
   xmlns:Z="http://ns.example.org/standards/z39.50"&gt;
  &lt;D:response&gt;
    &lt;D:href&gt;http://example.org/bar.html&lt;/D:href&gt;
    &lt;D:propstat&gt;
      &lt;D:prop&gt;
        &lt;Z:author /&gt;
        &lt;Z:int-doc-id /&gt;
      &lt;/D:prop&gt;
      &lt;D:status&gt;HTTP/1.1 200 OK&lt;/D:status&gt;
    &lt;/D:propstat&gt;
  &lt;/D:response&gt;
&lt;/D:multistatus&gt;
</artwork></figure>
</section>


<section title="Example for failed PROPPATCH">
<figure><preamble>
   &gt;&gt;Request</preamble>
<artwork>
PROPPATCH /bar.html HTTP/1.1
Host: example.org
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;D:propertyupdate xmlns:D="DAV:"
   xmlns:pf="http://sapportals.com/xmlns/cm/webdav"
   xmlns:Z="http://ns.example.org/standards/z39.50"&gt;
  &lt;D:set&gt;
    &lt;D:prop&gt;
      &lt;Z:author pf:hidden="flase"&gt;Joe User&lt;/Z:author&gt;
    &lt;/D:prop&gt;
  &lt;/D:set&gt;
&lt;/D:propertyupdate&gt;
</artwork></figure>
<figure><preamble>
   &gt;&gt;Response</preamble>
<artwork>
HTTP/1.1 207 Multi-Status
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;D:multistatus xmlns:D="DAV:"
   xmlns:Z="http://ns.example.org/standards/z39.50"&gt;
  &lt;D:response&gt;
    &lt;D:href&gt;http://example.org/bar.html&lt;/D:href&gt;
    &lt;D:propstat&gt;
      &lt;D:prop&gt;&lt;Z:author/&gt;&lt;/D:prop&gt;
      &lt;D:status&gt;HTTP/1.1 422 Unprocessable Entity&lt;/D:status&gt;
      &lt;D:responsedescription&gt;
        Does not parse as xs:boolean
      &lt;/D:responsedescription&gt;
    &lt;/D:propstat&gt;
  &lt;/D:response&gt;
&lt;/D:multistatus&gt;
</artwork></figure>
<t>
  In this case the request failed because the supplied value "flase" is not 
  a valid value for pf:hidden.
</t>
</section>
</section>
</ed:del>
</ed:replace>

</section>

<section title="Changes for PROPFIND method">
<section title="Marshalling of datatype information">
<t>
  PROPFIND is extended to return the data type information for properties
  unless one of the following conditions is met:
  <list style="symbols">
  	<t>The data type MUST be different from "xs:string" (because this can
    be considered the default data type).</t>
    <t>The property's data type MUST <ed:replace ed:resolves="edit" datetime="2004-08-30"><ed:del>not</ed:del><ed:ins>NOT</ed:ins></ed:replace> be defined in <xref target="RFC2518"/>
    (because these types are already well-defined).</t>
  </list>
</t>

<section title="Example for PROPFIND/prop">
<figure><preamble>
   &gt;&gt;Request</preamble>
<artwork>
PROPFIND /bar.html HTTP/1.1
Host: example.org
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;D:propfind xmlns:D="DAV:"
  xmlns:Z="http://ns.example.org/standards/z39.50"&gt;
  &lt;D:prop&gt;
    &lt;D:getcontenttype/&gt;
    &lt;Z:released/&gt;
  &lt;/D:prop&gt;
&lt;/D:propfind&gt;
</artwork></figure>
<figure><preamble>
   &gt;&gt;Response</preamble>
<artwork>
HTTP/1.1 207 Multi-Status
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;D:multistatus xmlns:D="DAV:"
   xmlns:Z="http://ns.example.org/standards/z39.50"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt;
  &lt;D:response&gt;
    &lt;D:href&gt;http://example.org/bar.html&lt;/D:href&gt;
    &lt;D:propstat&gt;
      &lt;D:prop&gt;
        &lt;D:getcontenttype&gt;text/html&lt;/D:getcontenttype&gt; 
        &lt;Z:released xsi:type="xs:boolean"&gt;1&lt;/Z:released&gt;
      &lt;/D:prop&gt;
      &lt;D:status&gt;HTTP/1.1 200 OK&lt;/D:status&gt;
    &lt;/D:propstat&gt;
  &lt;/D:response&gt;
&lt;/D:multistatus&gt;
</artwork></figure>
<t>
	This example shows that the property value "true" is returned with the
  correct data type information, and that the server chose one of the two
  possible representations defined in XML Schema. It also shows that
  data type information is not returned for "D:getcontenttype", as this
  property's data type is already defined in <xref target="RFC2518"/>.
</t>
</section>
</section>

<ed:replace datetime="2004-08-28" ed:resolves="strip-flags-and-displaynames"><ed:del>
<section title="Marshalling of property flags">
<t>
  Marshalling of property flags is triggered by adding extension elements
  to the PROPFIND request body accordingly.
</t>
<figure><artwork>
&lt;!ELEMENT propfind ((allprop | propname | prop),
                       pf:include-hidden-flag+,
                       pf:include-protected-flag+ ) &gt;
&lt;!ELEMENT pf:include-hidden-flag EMPTY &gt;
&lt;!ELEMENT pf:include-protected-flag EMPTY &gt;
</artwork></figure>
<t>
Presence of a pf:include-hidden-flag element in the request body indicated that the
server SHOULD include the flag pf:hidden on all properties.
Presence of a pf:include-protected-flag element in the request body indicated that the
server SHOULD include the flag pf:protected on all properties.
</t>

<section title="Example for PROPFIND/prop">
<figure><preamble>
   &gt;&gt;Request</preamble>
<artwork>
PROPFIND /bar.html HTTP/1.1
Host: example.org
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;D:propfind xmlns:D="DAV:"
  xmlns:pf="http://sapportals.com/xmlns/cm/webdav"
  xmlns:Z="http://ns.example.org/standards/z39.50"&gt;
  &lt;D:prop&gt;
    &lt;D:getcontenttype/&gt;
    &lt;D:getetag/&gt;
    &lt;Z:author/&gt;
  &lt;/D:prop&gt;
  &lt;pf:include-hidden-flag/&gt;
  &lt;pf:include-protected-flag/&gt;
&lt;/D:propfind&gt;
</artwork></figure>
<figure><preamble>
   &gt;&gt;Response</preamble>
<artwork>
HTTP/1.1 207 Multi-Status
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;D:multistatus xmlns:D="DAV:"
  xmlns:pf="http://sapportals.com/xmlns/cm/webdav"
  xmlns:Z="http://ns.example.org/standards/z39.50"&gt;
  &lt;D:response&gt;
    &lt;D:href&gt;http://example.org/bar.html&lt;/D:href&gt;
    &lt;D:propstat&gt;
      &lt;D:prop&gt;
        &lt;D:getcontenttype
          pf:hidden="false"
          pf:protected="true"&gt;text/html&lt;/D:getcontenttype&gt; 
        &lt;D:getetag
          pf:hidden="true"
          pf:protected="true"&gt;"abc"&lt;/D:getetag&gt; 
        &lt;Z:author
          pf:hidden="false"
          pf:protected="false"&gt;Joe User&lt;/Z:author&gt;
      &lt;/D:prop&gt;
      &lt;D:status&gt;HTTP/1.1 200 OK&lt;/D:status&gt;
    &lt;/D:propstat&gt;
  &lt;/D:response&gt;
&lt;/D:multistatus&gt;
</artwork></figure>
</section>
</section>
</ed:del></ed:replace>

</section>




<section title="Compatibility Considerations">

<section title="Datatype marshalling">
<t>
	This part of this specification does not introduce any new protocol elements, nor does
  it change the informal WebDAV DTD. It merely specifies additional server
  semantics for the case where clients submit additional data type information
  in an attribute on the property element (previously undefined), and 
  adds an additional attribute on property elements upon PROPFIND.
</t>
<t>
	Clients not aware of datatype handling should not supply the "xsi:type"
  attribute on property elements (after all, this attribute belongs to the
  XML Schema-Instance namespace which has been defined for exactly this
  purpose). Old clients should also ignore additional attributes on
  property elements returned by PROPFIND (and similar methods), although
  the WebDAV specification only defines this behaviour for unknown elements
  (and is silent about unknown attributes).
</t>
<t>
	Servers not aware of datatype handling either drop the "xsi:type"
  attribute, or persist it along with the property value. However, they
  will never indicate successful parsing of the data type by returning
  back the type in the response to PROPPATCH.
</t>
</section>

<ed:replace datetime="2004-08-28" ed:resolves="strip-flags-and-displaynames"><ed:del>
<section title="Property flags">
<t>
  Property flags are only reported upon special request and thus are never
  seen by old clients. The PROPFIND request body has been extended according
  to the WebDAV XML extensibility rules defined in <xref target="RFC2518"/>,
  section 14.
</t>
<t>
	Clients not aware of property flags should not supply the attributes
  on property elements. This follows from the property flag namespace being
  controlled by the authors of this specification.
</t>
<t>
	Servers not aware of property flags either drop them or persist them
  along with the property value. No harm is done, unless the client supplied
  erroneous values. 
</t>
</section>

<section title="New live properties">
<t>
  The introduction of new WebDAV properties does not affect compatibility with
  existing implementations at all.
</t>
</section>
</ed:del></ed:replace>

</section>

<section title="Internationalization Considerations">
<t>
   This proposal builds on <xref target="RFC2518"/>, and inherits its 
   internationalizability.
</t>
</section>

<section title="IANA Considerations">
<t>
   This proposal does not introduce any new IANA considerations, since 
   it does not specify any new namespaces (in the general sense), but 
   merely uses existing ones.
</t>
</section>





<section title="Acknowledgements">
<t>
This draft has benefited from thoughtful discussion by Stefan Eissing<ed:replace><ed:del> and</ed:del><ed:ins>, </ed:ins></ed:replace>
Eric Sedlar<ed:replace><ed:ins> and Kevin Wiggen</ed:ins></ed:replace>.
</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"/>
    <area>General</area>
    <keyword>keyword</keyword>
  </front>
  <seriesInfo name="BCP" value="14"/>
  <seriesInfo name="RFC" value="2119"/>
</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="XS1" target="http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/">
<front>
<title>XML Schema Part 1: Structures</title>
<author initials="H. S." surname="Thompson" fullname="Henry S. Thompson">
<organization>University of Edinburgh</organization>
<address><email>ht@cogsci.ed.ac.uk</email></address></author>
<author initials="D." surname="Beech" fullname="David Beech">
<organization>Oracle</organization>
<address><email>David.Beech@oracle.com</email></address></author>
<author initials="M." surname="Maloney" fullname="Murray Maloney">
<organization>(for) Commerce One</organization>
<address><email>murray@muzmo.com</email></address></author>
<author initials="N." surname="Mendelsohn" fullname="Noah Mendelsohn">
<organization>Lotus Development Corporation</organization>
<address><email>Noah_Mendelsohn@lotus.com</email></address></author>
<author>
<organization abbrev="W3C">World Wide Web Consortium</organization>
<address>
<postal>
<street>MIT Laboratory for Computer Science</street>
<street>545 Technology Square</street>
<city>Cambridge</city> <region>MA</region> <code>02139</code>
<country>US</country>
</postal>
<phone>+ 1 617 253 2613</phone>
<facsimile>+ 1 617 258 5999</facsimile>
<email>timbl@w3.org</email>
<uri>http://www.w3c.org</uri>
</address>
</author>
<date month="May" year="2001"/>
</front>
<seriesInfo name="W3C" value="REC-xmlschema-1-20010502"/>
</reference>

<reference anchor="XS2" target="http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/">
<front>
<title>XML Schema Part 2: Datatypes</title>
<author initials="P. V." surname="Biron" fullname="Paul V. Biron">
<organization>Kaiser Permanente, for Health Level Seven</organization>
<address><email>Paul.V.Biron@kp.org</email></address></author>
<author initials="A." surname="Malhotra" fullname="Ashok Malhotra">
<organization>Microsoft, formerly of IBM</organization>
<address><email>ashokma@microsoft.com</email></address></author>
<author>
<organization abbrev="W3C">World Wide Web Consortium</organization>
<address>
<postal>
<street>MIT Laboratory for Computer Science</street>
<street>545 Technology Square</street>
<city>Cambridge</city> <region>MA</region> <code>02139</code>
<country>US</country>
</postal>
<phone>+ 1 617 253 2613</phone>
<facsimile>+ 1 617 258 5999</facsimile>
<email>timbl@w3.org</email>
<uri>http://www.w3c.org</uri>
</address>
</author>
<date month="May" year="2001"/>
</front>
<seriesInfo name="W3C" value="REC-xmlschema-2-20010502"/>
</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>

<ed:replace datetime="2004-08-28" ed:resolves="strip-flags-and-displaynames"><ed:del>
<reference anchor="RFC3253">
<front>
<title>Versioning Extensions to WebDAV</title>
<author initials="G." surname="Clemm" fullname="G. Clemm">
  <organization>Rational Software</organization>
  <address><email>geoffrey.clemm@rational.com</email></address>
</author>
<author initials="J." surname="Amsden" fullname="J. Amsden">
  <organization>IBM</organization>
  <address><email>jamsden@us.ibm.com</email></address>
</author>
<author initials="T." surname="Ellison" fullname="T. Ellison">
  <organization>IBM</organization>
  <address><email>tim_ellison@uk.ibm.com</email></address>
</author>
<author initials="C." surname="Kaler" fullname="C. Kaler">
  <organization>Microsoft</organization>
  <address><email>ckaler@microsoft.com</email></address>
</author>
<author initials="J." surname="Whitehead" fullname="J. Whitehead">
  <organization>UC Santa Cruz, Dept. of Computer Science</organization>
  <address><email>ejw@cse.ucsc.edu</email></address>
</author>
<date month="March" year="2002"/></front>
<seriesInfo name="RFC" value="3253"/>
</reference>
</ed:del></ed:replace>

</references>

<references title="Informative References">
	

<reference anchor="SOAP11" target="http://www.w3.org/TR/2000/NOTE-SOAP-20000508">
<front>
<title>Simple Object Access Protocol 1.1</title>
<author initials="D." surname="Box" fullname="Don Box">
<organization>DevelopMentor</organization>
<address><email>dbox@develop.com</email></address></author>
<author initials="D." surname="Ehnebuske" fullname="David Ehnebuske">
<organization>IBM</organization>
<address><email>davide@us.ibm.com</email></address></author>
<author initials="G." surname="Kakivaya" fullname="Gopal Kakivaya">
<organization>Microsoft</organization>
<address><email>gopalk@microsoft.com</email></address></author>
<author initials="A." surname="Layman" fullname="Andrew Layman">
<organization>Microsoft</organization>
<address><email>andrewl@microsoft.com</email></address></author>
<author initials="N." surname="Mendelsohn" fullname="Noah Mendelsohn">
<organization>Lotus Development Corp.</organization>
<address><email>Noah_Mendelsohn@lotus.com</email></address></author>
<author initials="H. F." surname="Nielsen" fullname="Henrik Frystyk Nielsen">
<organization>Microsoft</organization>
<address><email>frystyk@microsoft.com</email></address></author>
<author initials="S." surname="Thatte" fullname="Satish Thatte">
<organization>Microsoft</organization>
<address><email>satisht@microsoft.com</email></address></author>
<author initials="D." surname="Winer" fullname="David Winer">
<organization>UserLand Software, Inc.</organization>
<address><email>dave@userland.com</email></address></author>
<author>
<organization abbrev="W3C">World Wide Web Consortium</organization>
<address>
<postal>
<street>MIT Laboratory for Computer Science</street>
<street>545 Technology Square</street>
<city>Cambridge</city> <region>MA</region> <code>02139</code>
<country>US</country>
</postal>
<phone>+ 1 617 253 2613</phone>
<facsimile>+ 1 617 258 5999</facsimile>
<email>timbl@w3.org</email>
<uri>http://www.w3c.org</uri>
</address>
</author>
<date month="May" year="2000"/>
</front>
<seriesInfo name="W3C" value="NOTE-SOAP-20000508"/>
</reference>

<ed:replace datetime="2004-08-28" ed:resolves="strip-flags-and-displaynames"><ed:del>
<reference anchor="SEARCH" target="http://greenbytes.de/tech/webdav/draft-reschke-webdav-search-06.html">
  <front>
    <title>WebDAV SEARCH</title>
  		
    <author initials="J. F." surname="Reschke" fullname="Julian F. Reschke" role="editor">
    	<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>
      
  	<author initials="S." surname="Reddy" fullname="Surendra Reddy">
  		<organization abbrev="Oracle">Oracle Corporation</organization>
  		<address>
  	    <postal>
     	    <street>600 Oracle Parkway, M/S 6op3</street>
         	<city>Redwoodshores</city><region>CA</region><code>94065</code>
        </postal>
        <phone>+1 650 506 5441</phone>
        <email>Surendra.Reddy@oracle.com</email>
  	  </address>
    </author>
      
    <author initials="J." surname="Davis" fullname="Jim Davis">
  	  <organization abbrev="Intelligent Markets">Intelligent Markets</organization>
  		<address>
        <postal>
          <street>410 Jessie Street 6th floor</street>
          <city>San Francisco</city><region>CA</region><code>94103</code>
        </postal>
        <email>jrd3@alum.mit.edu</email>
      </address>
    </author>
  
  	<author initials="A." surname="Babich" fullname="Alan Babich">
  		<organization abbrev="Filenet">FileNET Corp.</organization>
      <address>
  			<postal>
          <street>3565 Harbor Blvd.</street>
          <city>Costa Mesa</city><region>CA</region><code>92626</code>
        </postal>
        <phone>+1 714 327 3403</phone>
        <email>ababich@filenet.com</email>
      </address>
    </author>    
  
    <date month="February" year="2004"/>
  </front>
  <seriesInfo name="ID" value="draft-reschke-webdav-search-06"/>
</reference>
</ed:del></ed:replace>

</references>


<section title="Example: marshalling of array-typed properties">
<t>
As an example for more complex data types, this section shows marshalling
of array-typed properties as implemented in the WebDAV protocol adapters of
SAP Portal's Enterprise Portal System (release 5.0).
</t>
<t>
As XML Schema <xref target="XS2"/> does not define simple types for arrays,
it builds on the predefined array types used in <xref target="SOAP11"/>. 
These in turn can be based on the simple types defined in XML Schema.
</t>
<t>
Note the following special properties of SOAP-encoded arrays:
  <list style="numbers">
    <t>They require an additional "arrayType" attribute to specify the array length 
    and the base type.</t>
    <t>The names of the individual children of the property element
    aren't relevant as the type information is already encoded on the property
    element itself. It is however recommended to use identical element names
    for all array members.</t>
  </list> 
</t>
<section title="Setting of array-typed property" anchor="setting.of.array-typed.property">
<figure><preamble>
   &gt;&gt;Request</preamble>
<artwork>
PROPPATCH /bar.html HTTP/1.1
Host: example.org
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;propertyupdate xmlns="DAV:"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:xs="http://www.w3.org/2001/XMLSchema"
   xmlns:Z="http://ns.example.org/standards/z39.50"
   xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/"&gt;
  &lt;set&gt;
    &lt;prop&gt;
      &lt;Z:refs xsi:type="soap-enc:Array"
        soap-enc:arrayType="xs:string[2]"&gt;
        &lt;xs:string&gt;http://www.w3.org/TR/SOAP&lt;/xs:string&gt; 
        &lt;xs:string&gt;http://www.w3.org/TR/xmlschema-2&lt;/xs:string&gt; 
      &lt;/Z:refs&gt;
    &lt;/prop&gt;
  &lt;/set&gt;
&lt;/propertyupdate&gt;
</artwork></figure>
<figure><preamble>
   &gt;&gt;Response</preamble>
<artwork>
HTTP/1.1 207 Multi-Status
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;multistatus xmlns="DAV:"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:xs="http://www.w3.org/2001/XMLSchema"
   xmlns:Z="http://ns.example.org/standards/z39.50"
   xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/"&gt;
  &lt;response&gt;
    &lt;href&gt;http://example.org/bar.html&lt;/href&gt;
    &lt;propstat&gt;
      &lt;prop&gt;
        &lt;Z:refs xsi:type="soap-enc:Array"
          soap-enc:arrayType="xs:string[2]"/&gt;
      &lt;/prop&gt;
      &lt;status&gt;HTTP/1.1 200 OK&lt;/status&gt;
     &lt;/propstat&gt;
  &lt;/response&gt;
&lt;/multistatus&gt;
</artwork></figure>
</section>

<section title="Getting an array-typed property">
<figure><preamble>
   &gt;&gt;Request</preamble>
<artwork>
PROPFIND /bar.html HTTP/1.1
Host: example.org
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;D:propfind xmlns:D="DAV:"
  xmlns:Z="http://ns.example.org/standards/z39.50"&gt;
  &lt;D:prop&gt;
    &lt;Z:refs/&gt;
  &lt;/D:prop&gt;
&lt;/D:propfind&gt;
</artwork></figure>
<figure><preamble>
   &gt;&gt;Response</preamble>
<artwork>
HTTP/1.1 207 Multi-Status
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;D:multistatus xmlns:D="DAV:"
   xmlns:Z="http://ns.example.org/standards/z39.50"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:xs="http://www.w3.org/2001/XMLSchema"
   xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/"&gt;
  &lt;D:response&gt;
    &lt;D:href&gt;http://example.org/bar.html&lt;/D:href&gt;
    &lt;D:propstat&gt;
      &lt;D:prop&gt;
        &lt;Z:refs xsi:type="soap-enc:Array"
          soap-enc:arrayType="xs:string[2]"&gt;
          &lt;xs:string&gt;http://www.w3.org/TR/SOAP&lt;/xs:string&gt; 
          &lt;xs:string&gt;http://www.w3.org/TR/xmlschema-2&lt;/xs:string&gt; 
        &lt;/Z:refs&gt;
      &lt;/D:prop&gt;
      &lt;D:status&gt;HTTP/1.1 200 OK&lt;/D:status&gt;
    &lt;/D:propstat&gt;
  &lt;/D:response&gt;
&lt;/D:multistatus&gt;
</artwork></figure>
</section>


<ed:replace datetime="2004-08-28" ed:resolves="strip-flags-and-displaynames"><ed:del>
<section title="Optional DASL operators for queries on array-typed properties">
<t>
  This section lists a set of proposed optional WebDAV SEARCH <xref target="SEARCH"/> 
  operators for the DAV:basicsearch grammar (note that the standard operators
  for DAV:basicsearch are defined to evalute to UNKNOWN for properties with
  mixed/element content).
</t>
<t>
  All of the operators below evaluate to UNKNOWN if the property doesn't exist
  or isn't array-typed. Also, the operators support the "caseless" attribute
  defined for DAV:basicsearch.
</t>
<t>
  The namespace name for all operators below is "http://sapportals.com/xmlns/cm/webdav".
  However for brevity, the prefix "sap" is used.
</t>

<section title="sap:some-eq">
<t>
  Evaluates to TRUE if at least one of the array members equals the operand.
</t>

<section title="Example">
<figure><artwork>
&lt;sap:some-eq
    xmlns:sap="http://sapportals.com/xmlns/cm/webdav"
    xmlns:Z="http://ns.example.org/standards/z39.50"
    xmlns="DAV:"&gt;
  &lt;property&gt;&lt;Z:refs/&gt;&lt;/property&gt;
  &lt;literal&gt;http://www.w3.org/TR/xmlschema-2&lt;/literal&gt;
&lt;/sap:some-eq&gt;
</artwork></figure>
<t>
  The expression above will evaluate to TRUE for the example from
  <xref target="setting.of.array-typed.property"/>.
</t>
</section>

</section>

<section title="sap:some-gt">
<t>
  Evaluates to TRUE if at least one of the array members is greater than the operand.
</t>
</section>

<section title="sap:some-gte">
<t>
  Evaluates to TRUE if at least one of the array members is greater or equal than the operand.
</t>
</section>

<section title="sap:some-like">
<t>
  Evaluates to TRUE if at least one of the array members is "like" the operand (similar to
  DAV:basicsearch's "DAV:like" operator).
</t>
</section>

<section title="sap:some-lt">
<t>
  Evaluates to TRUE if at least one of the array members is less than the operand.
</t>
</section>

<section title="sap:some-lte">
<t>
  Evaluates to TRUE if at least one of the array members is equal or less than the operand.
</t>
</section>

<section title="sap:some-ne">
<t>
  Evaluates to TRUE if at least one of the array members does not equal the operand.
</t>
</section>

</section>
</ed:del></ed:replace>


</section>

<section title="Change Log (to be removed by RFC Editor before publication)">

<section title="Since 'draft-reschke-webdav-property-datatypes-00'">
<t>
Editorial fixes.<vspace/>
Changed examples to explicitly use utf-8 encoding for HTTP content type and
XML encoding.<vspace/>
Added example for marshalling array-typed properties.
</t>
</section>

<section title="Since 'draft-reschke-webdav-property-datatypes-01'">
<t>
Fix width of artwork for IETF compliance.<vspace/>
"Non-normative references" -&gt; "Informative references".
</t>
</section>

<section title="Since 'draft-reschke-webdav-property-datatypes-02'">
<t>
Added marshalling for property flags such as "hidden" and "protected".<vspace/>
Moved array marshalling example into back section.<vspace/>
Added rational and description for pf:property-displayname-set.<vspace/>
Added acknowledgements section.
</t>
</section>

<section title="Since 'draft-reschke-webdav-property-datatypes-03'">
<t>
Replaced domain names in examples according to RFC2606:
"www.foo.com" by "example.org", "www.example.com" by "ns.example.org/standards/z39.50/standards/z39.50" and
"www.w3.com/standards/z39.50" by "ns.example.org/standards/z39.50".
</t>
</section>


<section title="Since 'draft-reschke-webdav-property-datatypes-04'">
<t>
Remove superfluous IP and copyright sections. Moved "Introduction" section
to front.
</t>
</section>


<section title="Since 'draft-reschke-webdav-property-datatypes-05'">
<t>
  Added proposal for DAV:basicsearch operators for array-typed properties.
  Update all references.
</t>
</section>

<ed:replace datetime="2004-08-28"><ed:ins>
<section title="Since 'draft-reschke-webdav-property-datatypes-06'">
<t>
  Reformat abstract. Remove property flags, displayname support and
  DASL extensions.
</t>
</section>
</ed:ins></ed:replace>


</section>

    </back>

</rfc>