I'm trying to add a "use" element to an SVG document that is then displayed
in a JSVGCanvas.

Here is the element:

 Element zigzag =  SVGdoc.createElementNS(svgNS, "use");
 zigzag.setAttribute( "xlink:href",  ("#zg" ));
 zigzag.setAttribute("x", Double.toString(x));
 zigzag.setAttribute("y", Double.toString(y));


[the zg ref is defined in the same document.]

Here is the error that shows up in the same frame as the JSVGCanvas:

org.apache.batik.bridge.BridgeException: file/C:/temp/basic_document.svg:-1
The URI " specified on the element <use> is invalid.

When I output the SVGDocument to an external file, that file displays fine
in Internet Explorer.

I thought it had something to do with the character '#', but I tried to add
'\' as an escape charater, and got an "invalid esacape character" error.

What's doing on?

Thanks,
Jane



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

Reply via email to