Hi Thomas,
> This is incorrect syntax for the fill property.
>
> > use2.setAttributeNS(null, "style", "fill:
> url(file:///C:/de.svg#MyGradient)");
> >
> > which is correct syntax?
>
> This is 100% absolutely the correct syntax.
Even though i tried with correct syntax, it is giving following exception.
org.apache.batik.bridge.BridgeException: null:0
An I/O error occured while processing the URI:
"file:/C:/de.svg#MyGradient"
specified on the element <rect>
at org.apache.batik.bridge.BridgeContext.getReferencedElement
(BridgeContext.java:612)
at org.apache.batik.bridge.PaintServer.convertURIPaint
(PaintServer.java:348)
at org.apache.batik.bridge.PaintServer.convertPaint
(PaintServer.java:259)
at org.apache.batik.bridge.PaintServer.convertFillPaint
(PaintServer.java:228)
at org.apache.batik.bridge.PaintServer.convertFillAndStroke
(PaintServer.java:146)
.
.
.
Thanks,
Selva
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]