You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by LCID Fire <lc...@gmx.net> on 2010/07/05 18:23:31 UTC

CSS Search path

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).

Regards
Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Re: CSS Search path

Posted by th...@kodak.com.
Hi LCID,

LCID Fire <lc...@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 
a
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 
     SVGOMDocument.setURLObject.