Hi,

I'm getting an error when attempting to export an SVG Document to JPEG (or
other image format). I've included the top of the stack trace below.
Basically the essence of the error is that:

The attribute "xlink:href" of the element <use> is required

I am using the <use> tag, but can't see where the syntax is wrong as I am
including the attribute "xlink:href". The SVG renders fine in the browser.
Here's a snippet of the SVG source where I use the <use> tag. (The "#circle"
is one of my 'defs' which is included earlier in the SVG doc).....

<use fill-opacity="0.2" xmlns:xlink="http://www.w3.org/1999/xlink";
 
onmousedown="select_group(evt,true,90.6912,202.90311885986404);"
                 stroke="blue" xlink:href="#circle"
 
onmouseover="select_point(evt,true,90.6912,202.90311885986404, &apos;DOSE =
0.00&apos;,&apos;IRESP =
106.89&apos;,&apos;ID&apos;,&apos;1.0&apos;,0.0,106.88575287553);"
                 transform="translate(90.6912,202.90311885986404)scale(5.0)"
                 width="5.0%" xlink:show="embed" xlink:type="simple"
fill="blue"
                 onmouseup="deselect_group(evt,true);" height="5.0%"
 
onmouseout="deselect_point(evt,true);deselect_group(evt,true);"
                 xlink:actuate="onLoad"/>


And here's the top of the stack trace:


org.apache.batik.transcoder.TranscoderException: null
Enclosed Exception:
null:-1
The attribute "xlink:href" of the element <use> is required
        at
org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown S
ource)
        at
org.apache.batik.transcoder.image.ImageTranscoder.transcode(Unknown S
ource)
        at
org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown S
ource)
        at
org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown S
ource)
        at
com.mango.svg.SVGManager.streamSVGIntoImageFormat(SVGManager.java:217
)

Any help gratefully received,

Kind regards,
Dylan




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

Reply via email to