[Phoenix] Adaption of relative links to a base URI

Andreas Wuest awuest at student.ethz.ch
Sat Sep 30 03:09:41 CEST 2006


Hi

On 30.9.2006 2:55 Uhr, Andreas Wuest wrote:

> Hi
> 
> I've just implemented base URI rewriting, i.e. all relative links are 
> modified such that they are absolute links with regard to a certain URI 
> (currently the URI from where the document is loaded, but we could also 
> specify e.g. a Neutron baseURI attribute to override this).
> 
> Upon serialisation, the links are properly restored.
> 
> With other words, we can finally display images which have relative 
> URIs, and relative anchor elements are rendered like normal links.
> 
> Problems: <link/> elements under <head/> are not modified, i.e. CSS 
> documents can not yet be referenced relatively.

Heh, ah, sorry for the misinformation, this indeed works! You can 
reference CSS files relatively now. :)

> Furthermore, CSS 
> documents which are referenced using @import are not rewritten as well.

Import statements though don't.

-- 
Kind regards,
Andi



More information about the Phoenix mailing list