Cybernd wrote:

Hi Thomas

   The root element of an SVGDocument must always be an 'svg'
element in the svg namespace.  My suspicion given that writing
to a string and reparsing works is that while you have an 'svg'
element it is not in the svg namespace (although it may have an
appropriate xmlns attribute).

Thx, this was the cause of my problem. I just added an default namespace deklaration to the svg element and all works proper.


Feature request:
Improvement of the errorhandling. For example the exception could say "wrong namespace" or something like that.

What you are asking for is going beyond error handling into probable mistake detection - this is nice in a compiler (offline tool) but really isn't normally done in a runtime.

   Contributions are always welcome although one would have
to be careful not to impact normal runtime for this sort of
thing.

It is also not ideal when the beheavior of the two constructors differs. So for example both methods should throw an exception or both ones should add the svg namespace when there is no other default namespace declared.

No, this would be just wrong (violate specs).


Currently the beheavior of batik in this case is not pursuable for an project outsider like me.

Sorry!



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



Reply via email to