Patrick Dähne wrote:
> Hello Marcus,
[snip]
>> I don't see why the transformation would have to ignore the # ? .. (It
>> would remove only file.obj.. not archive.zip#file.obj .. back up  
>> only to
>> the first / _or_ # .)
> 
> Because the rules for transforming relative (http/file/ftp) URLs to  
> absolute URLs say that relative URLs are relative to the "path" part  
> of the HTTP URL and not to the "fragment" part.

Ok. And we can't work around those 'rules' by defining our own transform 
function that takes fragment into account? (That does not convert a
'regular' relative URL to a 'regular' absolute URL, but rather works 
with the fragment syntax as defined by 'OpenSG archive URLs'?)

Or would that be hideous and unholy? :)

>> As I said, I'm no URL expert. I do not see the difference between  
>> using
>> # and ! in your example. (Given that I write the transform code  
>> myself.
>> Or are the standard rules which govern that?)
> 
> The crucial point here is not using ! instead of #. The crucial point  
> is that Sun introduced a new URL scheme "jar:" where relative URLs  
> are resolved differently (compared to http/file/ftp URLs). Look  
> carefully at my example - the URL starts with "jar:", not with "http:".

Yeah, I noticed that. I still think we could be able to transform URLs 
however we want (By analogy that a CGI-script that takes a 
fragment-containing URL and does something to it is very similar to what 
we want to do). Now, if we _should_, that's another matter. :)

Oh well. We could also use the Java syntax, everyone is familiar with it 
so it makes sense to do that as well.

Cheers,
/Marcus

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to