Hi Selva,

   The following worked fine for me:

<rect x="10" y="20" width="100" height="150" 
      style="fill:white; stroke:rgb(0,0,0)"
      onclick="evt.target.parentNode.removeChild(evt.target)"/>

   There must be some interaction with the rest of your program...
   It's possible that you could get this error if you weren't using the
SVGCSSEngine with the document somehow...

news <[EMAIL PROTECTED]> wrote on 05/12/2006 04:04:02 AM:

> i have used style value as "fill:white; stroke:rgb(0,0,0)" to my 
rectangle. 
> But while removing the element, i am getting the following error.
> 
> Since i will get the color value from java Color class, i have 
constructed rgb 
> string from Color class's RGB value. 
> 
> So can anyone please specify what is the error in that style attribute?
> 
> 
> The attribute "style" represents an invalid CSS declaration 
("fill:white; 
> stroke:rgb(0,0,0)").
> 
> org.w3c.dom.DOMException: <unknown>:
> The attribute "style" represents an invalid CSS declaration 
("fill:white; 
> stroke:rgb(0,0,0)").
> Original message:
>    at org.apache.batik.css.engine.CSSEngine.getCascadedStyleMap
> (CSSEngine.java:818)
>    at org.apache.batik.css.engine.CSSEngine.invalidateProperties
> (CSSEngine.java:1991)
>    at org.apache.batik.css.engine.CSSEngine.propagateChanges
> (CSSEngine.java:2130)
>    at org.apache.batik.css.engine.CSSEngine.invalidateProperties
> (CSSEngine.java:2031)
> 
> Thanks,
> Selva
> 
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to