[Osr-101] Relative paths in url attribute of open, save, etc.

Michael Wechner michael.wechner at wyona.com
Fri Feb 2 10:42:47 CET 2007


Thomas Comiotto wrote:

>>
>> But for instance CSS links referenced from within the editable  
>> document, the document URL would be considered the base URL.
>>
>
> Unfortunately Neutron's introspection data lacks information about  
> what you call the document URL (the URI of the document that was  
> introspected) which is needed to resolve CSS and other linked resources.


well, because it doesn't have to be resolved from a document, but could 
rather be passed directly to a client, e.g.

http://foo.bar/xopus?neutron-introspection=some-introspection-document.xml

but I think you agree to this as you state below, right?

>
> As a workaround the introspection document's referrer has to be  
> considered the baseURI for linked resources (I bet it's how Yulup  
> does it - if at all).
>
> But introspection data should be self contained I think. If you load  
> a doc from a NAR for instance or point your editor directly to an  
> introspection file there is no referrer.
>
> I'd either introduce a referrer directive to the introspection file,  
> find a catchy term for "introspected document" and introduce a  
> baseURI for that, or (as suggested) keep things flexible and add an  
> attribute to the <style> directive that let's the server state a  
> baseURI for linked resources referred to by the styled view.


why not using the document URL which is being referenced from within the 
introspection URL?

Maybe it's best if we do some examples, e.g.

Introspection document URL: http://foo.bar/hello/introspection.xml

Resource URL to be modified within introspection document

<resource>
  <edit>
    <open url="world.xhtml"/>
  </edit>

  <styles>
    <style type="text/css" url="../css/global.css"/>

</resource>

which means I would expect the document to be edited at

http://foo.bar/hello/world.xhtml

and the CSS at

http://foo.bar/css/global.css

right?

Cheers

Michi

>
> Thomas
>
>
>
>
>
>
>> Thanks
>>
>> Michi
>>
>>>
>>> Cheers,
>>> Thomas
>>>
>>>
>>>
>>
>>
>> -- 
>> Michael Wechner
>> Wyona      -   Open Source Content Management   -    Apache Lenya
>> http://www.wyona.com                      http://lenya.apache.org
>> michael.wechner at wyona.com                        michi at apache.org
>> +41 44 272 91 61
>>
>>
>
>


-- 
Michael Wechner
Wyona      -   Open Source Content Management   -    Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
michael.wechner at wyona.com                        michi at apache.org
+41 44 272 91 61




More information about the Osr-101 mailing list