W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2005

An apparent batik failure

From: Ray Whitmer <ray@personallegal.net>
Date: Wed, 21 Dec 2005 07:31:10 -0700
Message-Id: <238C4D26-593C-4F80-81A2-E72F1DCA42BC@personallegal.net>
Cc: www-dom@w3.org
To: Cameron McCormack <cam-www-dom@aka.mcc.id.au>

On Dec 20, 2005, at 10:02 PM, Cameron McCormack wrote:

> Hi Ray.
> Ray Whitmer:
>> My own recent experience with Batik was very negative.  When I edited
>> documents with inkscape and tried to get Batik to accept them, I had
>> to remove every xml namespace declaration and prefix use before I
>> could get it to work.  I wouldn't therefore even count Batik until it
>> can parse XML documents with xml namespace declarations and usages of
>> xml:space, for example, in them (and I think there were other things
>> broken as well).  I have no experience with ASV6.
> If you have specific examples of where you think Batik is broken could
> you please file a bug report or send mail to one of the mailing lists
> (or reply here) so it could be fixed, thanks.  I haven't had any
> problems loading namespace well-formed documents in Batik.

There is one simple example of well-formed xml being rejected because  
of the xml namespace declaration.  I cannot duplicate the sequence of  
things that caused inkscape to place the xmlns:xml declaration into  
the document header.  It is even possible I was editing a drawing  
from an older version or even slightly possible that I had added it  
myself trying to overcome errors being reported on the xml:space  
attributes.  I found internet archives of others who had experienced  
such problems as well.

This time, to try to dup the error, I manually added the xmlns:xml,  
which is legal according to section 3 of http://www.w3.org/TR/2004/ 
REC-xml-names11-20040204/ and is not disallowed by the 1.0 namespaces  

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
      id="defs3" />
opacity:1.0000000;font-family:Bitstream Vera Sans;text- 

There were other stranger errors that I am not able to reproduce  
right now with this simple test graphic, but it was a many-hour  
ordeal getting a more-complex inkscape svg graphic to work in batik.   
I do not have a good test environment or samples set up for it right  
now.  Let me know if this does not fail for you. For what it is  
worth, the w3c validator at http://jiggles.w3.org/svgvalidator/  
failed in the same cases (failed so badly reasonable validation  
errors were not reported, so I do not consider it a properly-working  

In this particular test case, it is producing Illegal Namespace  
prefix: "xml", which should have been legal according to section 3 of  
http://www.w3.org/TR/2004/REC-xml-names11-20040204/ (which particular  
declaration I believe is compatible with the 1.0 namespaces spec,  
even if it is less-explicit).

I hope you can understand why I would be reluctant to compare the  
behavior of any batik DOM with this particular failure to accept the  
legal explicit xmlns:xml declaration.

Ray Whitmer
Received on Wednesday, 21 December 2005 14:31:28 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:12 UTC