Hi Ari,

K. Ari Krupnikov wrote:

It seems that SAXSVGDocumentFactory requires
http://xml.org/sax/features/namespace-prefixes to be set to true [...] Is the factory ignoring startPrefixMapping() callbacks and doing its own namespace management based on qnames and xmlns:* attributes?

Yes.


In my real application, I will be using a class that is not an
XMLReader and is not as controllable. In particular, I can't control
if the class reports xmlns:* attributes (and I can't blame it for
that, since SAX only requires readers to be able to set
namespace-prefixes to false).

Is there a way to make the SVG factory work when namespace-prefixes is
false?

You would have to rewrite parts of it (I don't think it would be hard, in fact if you were willing to trust the URI passed into start element it would simplify things a fair amount).

   The real question is why doesn't it trust the existing URI?
My suspicion is so Batik can control the 'default' namespace for
SVG documents that don't provide any xmlns attributes.


Ari.


Environment: Batik 1.5.1
Sun JDK 1.4.2_03-b02 on Linux
XMLReader: JAXP default org.apache.xerces.parsers.SAXParser




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



Reply via email to