Hi, On Wed, 2005-11-16 at 16:38 -0500, Bishop, Michael W. CONTR J9C880 wrote: > You kind of have me confused. Are you saying I should go ahead and > pretty much clone the tree? That seems like the safest approach to me; > I don't want to catch an error in mid-render. I haven't gotten to > looking at this yet, but I'm still gathering ideas on how to approach > it. I got side-tracked by a weird problem with JTable; I get a > layout-related stack trace infrequently when I call > JTable.setModel(...), but that's a Swing issue. Is there a way to get > to a lower level of validation? What if I take a Collection of > attributes? Is there anywhere in Batik where it checks attributes? > "stroke-width" should be an int, "color" should be in a range of valid > colors or whatever...would be easier to do on a lower-level. Otherwise > I guess it shouldn't be too intensive to clone the tree.
I do not know to validate either, but in Batik there are several micro parser class, that could help you to parse svg text, this micro parser class could help for simple validation. Or you can take a look at Bridge classes stuff on how the bridge validate the DOM and build corresponding GVT Regards Tonny Kohar -- Sketsa SVG Graphics Editor http://www.kiyut.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
