Hi Dylan,
"Dylan Browne" <[EMAIL PROTECTED]> wrote on 05/26/2006 05:26:43
AM:
> One change I made was to attempt to assign correct namespaces to
> the document and its elements, so it may be something to do with that?
Sounds likely.
> my histogram (containing SVG defined Rects) renders fine,
> my scatter plot (containing my own definition of #circle) does not.
Sounds like you aren't using/setting up the XLink namespace properly.
> I define my circle like this:
>
> Element circle_light = doc.createElementNS
> (Config.SVG_NAMESPACE,
> SVG12Constants.SVG_PATH_TAG);
The element creation looks good.
Are all your elements created through the DOM?
> circle_light.setAttribute("id", CIRCLE_BLANK);
Do you take care to use 'setAttributeNS' for the
attributes in other namespaces (xmlns:xlink, xlink:href)?
In fact you should use setAttributeNS for all attributes
in a namespace aware application, but for all SVG attributes
you use 'null' as the namespace, in Batik this doesn't matter
but in other DOM implementations it might:
circle_light.setAttributeNS(null, "id", CIRCLE_BLANK);
> The method I use to stream is this:
I don't think the problem is with the streaming it's
with the document construction.
> "Dylan Browne" <[EMAIL PROTECTED]> wrote on 05/19/2006
10:41:58
> AM:
>
> > 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
> >
> > <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,
> 'DOSE =
> > 0.00','IRESP =
> > 106.89','ID','1.0',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"/>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> [attachment "svgFailsToConvertToJPG.svg" deleted by Thomas E.
> DeWeese/449433/EKC]
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]