W3C home > Mailing lists > Public > w3c-dist-auth@w3.org > January to March 1999

contents of src and dst XML elements

From: Jim Davis <jdavis@parc.xerox.com>
Date: Wed, 10 Feb 1999 09:59:37 PST
Message-Id: <3.0.3.32.19990210095937.0095cd20@mailback.parc.xerox.com>
To: w3c-dist-auth@w3.org
The spec (RFC 2518) is inconsistent about the expected contents of the src
and dst XML elements.  In particular are they supposed to contain an href
XML element, or a 'raw' URI.

1. The description of the link XML element (12.4) says:

   The values in the href XML elements inside
   the src and dst XML elements of the link XML element MUST NOT be
   rejected if they point to resources which do not exist."

which implies the former.

2.  The definition of dst (12.4.1) and src (12.4.2) say that the value is a
URI and the contents is PCDATA, which implies the latter.

3. The example of the source property (13.10.1) shows src without an href

    <D:src>http://foo.bar/program</D:src>

So which is it?

One reason I ask is that someone asked me how to express anchors with
smaller granularity than an entire resource, for example byte ranges or
Xpointers.

Could I write, e.g.

<src><href>http://foo.bar/program</href>
     <byte-range><start>100</start><length>255</length></byte-range></src>
Received on Wednesday, 10 February 1999 13:28:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 June 2009 18:43:49 GMT