I've just changed FOP to support SVG 1.2 inside
fo:instream-foreign-object. In my first attempt I tried to use
SAXSVGDocumentFactory to build the SVG DOM (with version auto-detection)
but that failed with ClassCastExceptions (indirectly) because the SVG
namespace was declared not on the SVG root element but on the FO root.
Unfortunately, SAXSVGDocumentFactory assumes it's the root and does it's
own tracking of namespace declarations. I've found a fix that would have
fixed the problem (see attached patch) but in the end I had to make it
work with the current release so I had to detect the SVG version myself
and select the right DOMImplementation myself.

Anyway, instead of just throwing away that fix because I don't really
need it, I thought I'd just post it here in case it is useful.

Jeremias Maerki

Attachment: batik-saxdocumentfactory-with-fragment.diff
Description: Binary data

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

Reply via email to