Fix is as follows, it is because the first import is set to null and if
nothing changes it then line 255 will fall over, therefore I have just put
in a check for null and removed ir if there is nothing of interest about
it - seems to work.
for (int i = 0; i < irs.length; i++) {
ImportRecord ir = irs[i];
if ( ir.importElement != null ) { // added
if
(ir.importElement.getLocalName().equals(XBL_DEFINITION_TAG)) {
removeDefinitionRef(ir.importElement);
} else {
removeImport(ir.importElement);
}
} else { // added
imports.remove(ir); // added
} // added
}
Tom
On Wed, 23 Jan 2008 12:56:49 -0000, Tom McCallum <[EMAIL PROTECTED]>
wrote:
Hi,
I am trying to use the FlowText tags in my SVG document, similar to the
samples/extensions/flowTextAlign.svg. In my current trials with Batik I
have been using the following namespace
String svgNS = SVGDOMImplementation.SVG_NAMESPACE_URI
but when I try to create a FlowTextElement it given me the following:
org.w3c.dom.DOMException: The current document is unable to create an
element of the requested type (namespace: http://www.w3.org/2000/svg,
name: flowText).
Can someone please tell me what namespace I need to use to create these
elements, and also are there any changes to the way I am creating the
basic document so that I can create both SVG and Extension elements
besides the namespace?
DOMImplementation impl = SVGDOMImplementation.getDOMImplementation();
String svgNS = SVGDOMImplementation.SVG_NAMESPACE_URI;
Document doc = impl.createDocument(svgNS,
SVGConstants.SVG_SVG_TAG, null);
in order to be able to use these Flow elements?
Thanks in advance for your help,
Tom
--
PS Note this is the new email address - delete [EMAIL PROTECTED] as it
won't work soon!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]