Thomas DeWeese wrote:
Jorg Heymans wrote:

Is there a way of telling batik "the CSS file has changed, go and apply it again"? I am dynamically generating CSS server side, and need to tell my client side canvas somehow that it should reapply the CSS.

I believe Batik will track modifications to the processing instructions so you might be able to find the PI (it will be a previous sibling of the root document element) and remove and re-insert it (don't append it).

  What I would be tempted to do though would be to send the
CSS through a separate channel and make it the content of a
'style' element and just swap the style element's in the document
(replaceChild...).

Thanks i'll try this. Is it more efficient perhaps to have an inline style element rather than have the CSS elements externalized ?



Regards Jorg


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



Reply via email to