I have hit the same issue. Searching the archives & web didn't turn up any obvious descriptions of how to specify to use Crimson in Batik. Does anyone have a pointer to the details?
There are two ways to specify the SAX2 parser Batik should use. The first, which I think most people use is to provide the resource file: org/apache/batik/util/resources/XMLResourceDescriptor.properties which should have the following two properties:
org.xml.sax.driver = org.apache.xerces.parsers.SAXParser org.w3c.css.sac.driver = org.apache.batik.css.parser.Parser
The first is the one you probably want to change. I don't think you need to change the file Batik provides just make sure that your copy of the file appears earlier on the class path.
The other way to specify the parser is to provide a custom subclass of org.apache.batik.bridge.UserAgent that provides the method:
String getXMLParserClassName()
The default implementation get's it's value from the afore mentioned Resource, this works for both transcoders and the JSVGCanvas.
For Transcoders only you can provide a Transcoding hint: batik.transcoder.XMLAbstractTranscoder.KEY_XML_PARSER_CLASSNAME
That can also be used to provide the parser to use.
----- Original Message ----- From: "Thomas DeWeese" <[EMAIL PROTECTED]>
To: "Batik Users" <[EMAIL PROTECTED]>
Sent: Friday, August 22, 2003 4:07 AM
Subject: Re: xerces parser in an applet
Kalle Kilpi - BL wrote:
Hello,
We have the same problems with Xerces (in applet-mode) that was posted earlier by Philippe Buffet (http://koala.ilog.fr/batik/mlists/batik-users/archives/msg03433.html).
Is there any other solution for this, than changing the parser?
Hi Kalle, This is really a Xerces question. Changing the parser is easy to do (doesn't even require changing Batik code) so why is that
problematic?
> PS. Thomas if you read this, I want to thank you for your help. > The batik communty is really impressive, it's hard to find as > good support even for commercial software.
Thanks!
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]