Hi, I use a SVG Document with a defined entity defined like this in DOCTYPE :
<!ENTITY opal '<polygon
points="-50,-50 50,-50 50,50 -50,50"
style="font-size:12;fill:#ff0000;fill-rule:evenodd;stroke:#000000;stroke-widt
h:5.25;"
id="polygon552" />'>
This entity is not referenced in the text file document but is referenced later (after loading) when I query a database to get each "entityref" coordinates. I then group all entities into a GElement and I append it as a child to the root Element.
To be honest I don't have an idea how Batik will respond to this use of entities. However I think entities are the wrong way to go. The 'use' element - is intended for this purpose.
My Document is ALWAYS_DYNAMIC and display is not updated.
Make sure you change the document in the UpdateManager thread (however I suspect that Batik is simply not handling the Entity Refs).
> I tried then to
print the whole document to a debug SVG file to see how batik handles Entities and entities ref (using DOMUtilities.writeDocument. When I load the document with sodipodi and others editing tools, Entity definition (and doctype) disappeared from the file, thus refs could not be satisfied... (meaning, my appendChild of the GElement with entity refs worked in the document body)
So my question is : does Batik keeps entity defs after loading even they're not used? Does my way of doing such an operation is not compliant with the Batik API or processing operations sequence? How could I get this work?
Thanks a lot!
P.S : When copy paste the generated GElement bloc from my generated file to the source file (where Entity is defined), I get a correct and well formed SVG File and rendered output is what I want...
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]