Nicolas,

Nicolas wrote:
> 
> Whenever I try to open an SVG file created with Sodipodi (a very nice
> vector drawing program for Gnome, which natively implements SVG) in
> Batik viewer, I get:
> 
> org.w3c.dom.DOMException: An element of type "svg" has an invalid inline
> style: The "fill-opacity" property does not support percentage values.
> 
> Here's a sample of the code that generates this:
> 
>   <ellipse
>      style="stroke:none; fill:#7f7f7f; fill-opacity:100%;
> fill-rule:evenodd; stroke-opacity:100%; stroke-width:1px;
> stroke-linejoin:miter; stroke-linecap:butt;"
>      id="ellipse15"
>      cx="243.365028"
>      cy="324.312881"
>      rx="112.516714"
>      ry="80.747289" />
> 
> If I remove the fill-opacity parameter, Batik does'nt barf on it, but if
> I just remove the "%" sign (ie by replacing "100%" by "1"), it doesn't
> work.

The fill opacity should be a number between 0 and 1. Same for
stroke-opacity
further in your style declaration. Could you say what does not work if
you replace 100% with 1 in these two values? I just tried your example 
and it works if you replace the two 100% values with the correct syntax.

V.

> 
> So what's the deal? What's the proper way to specify "fill-opacity"?
> 
> BTW I'm using Batik 1.1rc3, sodipodi is from yesterday's CVS.
> 
> ---------------------------------------------------------------------
> 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