[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [Issue 1807] ra_dav doesn't permit properties to have colons in their names.

From: Branko ─îibej <brane_at_xbc.nu>
Date: 2004-04-13 18:02:56 CEST

Ben Reser wrote:

>On Mon, Apr 12, 2004 at 10:09:51PM -0500, C. Michael Pilato wrote:
>
>
>>Well, if we're doing hacks, can we simply differentiate between ":"
>>and the numeric character entity for a colon (what, "&x003a;" or
>>something) ?
>>
>>
>
>We can't just use entities because & and ; aren't valid chars in element
>names. We'd end up making up our own escaping sequence. While the
>namespace seems hackish, we can let the XML parser do most of the work
>for us so it might end up being easier.
>
>I suppose we could do something like:
>.x003a. and use an escape code for a literal period of .x002e.
>
>That would probably be pretty easy too. But pretty specific to us.
>
>
>
Escaping is fine and would work, but the namespace idea seems cleaner to
me and would be understood by other DAV clients. It would also allow us
to define a hierarchy of property namespaces; for example, "a:b:name"
could be defined as "name" in namespace

    http://subversion.tigris.org/xmlns/customproperty/a/b

instead of

     http://subversion.tigris.org/xmlns/customproperty/a:b:

-- Brane
Received on Tue Apr 13 18:03:09 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.