Hi Thomas,

I was adding in the <defs> element also dynamically (or so I thought).

Works like a charm , sorry for the noise.

Regards
Jorg


Thomas DeWeese wrote:
Hi Jorg,

   Well, if everything is working right, it shouldn't matter
what the base URI is for local references (like #logo).  If
it does it is likely a bug and I would be interested in seeing the
stackTrace or a reproducible test case.

Jorg Heymans wrote:

Up until now, i always created my documents dynamically using factory.createSVGDocument("jar:file:///foo.jar!/bar.svg", inputstream) , so basically using a non existing but valid URI and an inputstream.

I'm running into problems now when referencing def elements eg
<use x="10" xlink:href="#logo" y="10"/>

Now i can sort of guess why this is happening, the renderer tries to resolve the URL relative to the document URI (which is foobar).
What would be a sensible URI to put into the createSVGDocument() then? Is this URI resolved at load time? Or does it not matter what I put in, as long as the xlink:href use the same prefix?


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



Reply via email to