Hello all,
Sorry if this has already been asked, but this is my first post so am not
sure.
It would seem that the batik URIResolver only half works with the
bundleresource protocol. It finds the file, however does not seem to be able
to reference an anchor within the file ...
Eg.
<use xml:base="bundleresource://30/svg/buffer.svg#device" href=""/>
Leads to ...
The URI "bundleresource://30/svg/buffer.svg#device"
specified on the element <use> references an entire document.
However this works fine with the file protocol
URI uri =
this.getClass().getClassLoader().getResource("/svg/buffer.svg").toURI();
String location =
org.eclipse.core.runtime.FileLocator.toFileURL(uri.toURL()).toString();
Which gives
<use xml:base="file:///C:/....../svg/buffer.svg#device" href=""/>
Any help would be greatly appreciated as i don't think using the FileLocator
is an ideal solution.
Many thanks,
Mark
Batik Implementation-Version: 1.7 beta1+r522428
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]