xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thomas.dewe...@kodak.com
Subject Re: CSS Search path
Date Wed, 07 Jul 2010 10:01:04 GMT

LCID Fire <lcid-fire@gmx.net> wrote on 07/05/2010 12:23:31 PM:

> Is there any way to modify the path(s) Batik is searching for a linked 
> css file? Currently it seems like it just searches the current directory 

> (for a relative path).

        There is no search path, it builds the path to the CSS file (when 
relative path is given) by basing it on the documents URL[*].  This is the
required behavior for URL handling.

        You might be able to extend the ParsedURL class with a custom 
protocol that searches a path.


[*]  If the document doesn't have a URL because you constructed 
     it in memory then it will likely look in the current directory.
     You can provide the document with a base URL by calling 

View raw message