W3C home > Mailing lists > Public > ietf-dav-versioning@w3.org > April to June 2002

Typo in RFC 2518?

From: Ben Evans <ben.evans@parasolsolutions.com>
Date: Thu, 18 Apr 2002 16:41:11 +0100
To: Deltav WG <ietf-dav-versioning@w3.org>
Cc: w3c-dist-auth@w3.org
Message-ID: <20020418154110.GA5780@parasolsolutions.com>

Hi,

I think I've found a couple of typos in RFC 2518.

Specifically:

Page 24, Section 8.1.1, RFC 2518:

----

 >>Response

   HTTP/1.1 207 Multi-Status
   Content-Type: text/xml; charset="utf-8"
   Content-Length: xxxx

   <?xml version="1.0" encoding="utf-8" ?>
	 <D:multistatus xmlns:D="DAV:">
		<D:response>
			<D:href>http://www.foo.bar/file</D:href>
			<D:propstat>
				<D:prop xmlns:R="http://www.foo.bar/boxschema/">
					<R:bigbox>
						<R:BoxType>Box type A</R:BoxType>
					</R:bigbox>
					<R:author>
						<R:Name>J.J. Johnson</R:Name>
					</R:author>
				</D:prop>
				<D:status>HTTP/1.1 200 OK</D:status>
			</D:propstat>
			<D:propstat>
				<D:prop><R:DingALing/><R:Random/></D:prop>
[snip]
----------

Here, this should read:

   <?xml version="1.0" encoding="utf-8" ?>
	 <D:multistatus xmlns:D="DAV:">
		<D:response xmlns:R="http://www.foo.bar/boxschema/">
			<D:href>http://www.foo.bar/file</D:href>
			<D:propstat>
				<D:prop>
					<R:bigbox>
						<R:BoxType>Box type A</R:BoxType>
					</R:bigbox>
					<R:author>
						<R:Name>J.J. Johnson</R:Name>
					</R:author>
				</D:prop>
				<D:status>HTTP/1.1 200 OK</D:status>
			</D:propstat>
			<D:propstat>
				<D:prop><R:DingALing/><R:Random/></D:prop>
...
-----

as otherwise, the namespace definition of R: will be out of scope by
the time the <R:DingALing/> tag is encountered.

And, on page 91:

-------
[snip]

23.4.2 Meaning of Qualified Names

   [Note to the reader: This section does not appear in
   [REC-XML-NAMES],
   but is necessary to avoid ambiguity for WebDAV XML processors.]

   WebDAV compliant XML processors MUST interpret a qualified name as
   a
   URI constructed by appending the LocalPart to the namespace name
   URI.

   Example

   <del:glider xmlns:del="http://www.del.jensen.org/">
<del:glidername>
Johnny Updraft
     </del:glidername>
<del:glideraccidents/>
</del:glider>

In this example, the qualified element name "del:glider" is
   interpreted as the URL "http://www.del.jensen.org/glider".

   <bar:glider xmlns:del="http://www.del.jensen.org/">
<bar:glidername>
Johnny Updraft
     </bar:glidername>
<bar:glideraccidents/>
</bar:glider>

[snip]

----------------

In the second example, the line:

<bar:glider xmlns:del="http://www.del.jensen.org/">

should read:

<bar:glider xmlns:bar="http://www.del.jensen.org/">

as otherwise the XML namespace bar is undefined, and a namespace
validating parser will barf.

Can someone shed some light on these. Are they typos or have I
missed something?

Ben
Received on Thursday, 18 April 2002 11:41:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 13:57:43 GMT