Hi.

I'm using the Batik 1.5 Beta 5 ImageTranscoder to create buffered images from external SVGs. This works like a charm, when I set the full local path to the stylesheet and linked symbols, e.g.
_____________________________________________________________


...

<?xml-stylesheet type="text/css" href="file:/C:/path_to_css/my.css" ?>
<svg xmlns="&ns_svg;" xmlns:xlink="&ns_xlink;" width="289" height="67">
<use id="btn" xlink:href="file:/C:/path_to_library/lib.svg#btnSymbol_1" class="normal"/>
</svg>


_____________________________________________________________

However, I need to put in relative paths, e.g.
_____________________________________________________________

...

<?xml-stylesheet type="text/css" href="../my.css" ?>
<svg xmlns="&ns_svg;" xmlns:xlink="&ns_xlink;" width="289" height="67">
        <use id="btn" xlink:href="lib.svg#btnSymbol_1" class="normal"/>
</svg>

_____________________________________________________________

The SVG above shows up as expected when I load the whole shebang into the JSVGCanvas-Component, whereas the ImageTranscoder throws an exception with the same file.

Null Document reference: Invalid CSS document
An I/O error occured while processing the URI 'lib.svg#btnSymbol_1' specified on the element <use>


Any ideas?

ralf ...


------------------------------------------------------------- Ralf Siegel - Freelance Developer Recommended Listening: Enon - High Society (Touch & Go) contact_site: mailto:[EMAIL PROTECTED] -------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to