|
From: Richard C. <ri...@cy...> - 2006-02-19 10:36:29
|
Hi,
The setBaseURI method of RAP's MemModel and DbModel always appends a
'#' to the base URI (unless the URI already ends in #, :, /, or \).
Why is this? It doesn't seem quite right to me. Base URIs without a
hash at the end are perfectly legal (and more correct, IMO). Adding
the hash gets in the way in some situations, e.g. dealing with
metadata attached to the <> URI, and round-tripping. Also, I think
it's quite reasonable that after executing the following code, $a and
$b should be equal if $a contains a legal base URI:
$model->setBaseURI($a);
$b = $model->getBaseURI();
(And in RAP, $a and $b would often not be equal because of this.)
So, unless I'm missing something important, I suggest to remove this
quirk.
Best,
Richard
|