Is there a reason why
org.apache.batik.bridge.SVGImageElementBridge.buildImageGraphicsNode(BridgeContext,
Element)
disallows IRI references with a fragment?
In the 1.1 spec I can read: "Unlike use, the image element cannot
reference elements within an SVG file."
I read that so that you cannot have a local reference like "#my-frag",
but something like "myscheme:test/pages.tif#2" should be allowed, right
(provided I have a suitable protocol handler)?
Personally, I'm inclined to change:
if (uriStr.indexOf('#') != -1) {
throw new BridgeException(ctx, e, ERR_ATTRIBUTE_VALUE_MALFORMED,
new Object[] {"xlink:href", uriStr});
}
to:
if (uriStr.startsWith("#")) {
throw new BridgeException(ctx, e, ERR_ATTRIBUTE_VALUE_MALFORMED,
new Object[] {"xlink:href", uriStr});
}
Anything speaking against that?
Thanks,
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]