[sc34wg3] Canonical XTM question - Non-deterministic locator normalisation?

Eirik Jensen Opland sc34wg3@isotopicmaps.org
Tue, 08 Mar 2005 15:33:19 +0100


When I read the CXTM specification  
(http://www.isotopicmaps.org/sam/cxtm/), I get the impression that  
different input will sometimes produce the same output.

Suppose the value of the [base locator] property of the topic map item is  
"file:/home/myhome/mytopicmap.xtm",
and consider the following values for some locators inside that topicmap:
"file:/home/myhome/mytopicmap.xtm#foo"
"file:/home/myhome/#foo"
"file:/home/#foo"
"file:/#foo"

If I've understood the normalisation algorithm (section 3[3]) correctly,  
then these should all be canonicalised to:
"#foo"

It seems strange to me that three different locators may be canonicalised  
to three _equal_ normalised locator references. The information about  
different paths is simply lost

I wonder if this is the intended bahaviour. Wouldn't it be better if the  
normalised output reflected how _much_ of the base locator that is a  
prefix of the given locator? For example the locators could have the  
following canonical output (instead of all canonicalised to "#foo"):
"#foo"
"../#foo"
"../../#foo"
"../../../#foo"

-- 
Eirik Jensen Opland, Ontopian         <URL: http://www.ontopia.net >