xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephane Hillion <shill...@ilog.fr>
Subject Re: Error in style handling
Date Thu, 23 Aug 2001 16:26:08 GMT
On Thursday 23 August 2001 17:38, David Kane wrote:
> * The format of the color does not appear to comply with the spec.  The
> CSS spec (http://www.w3.org/TR/REC-CSS2/syndata.html#value-def-color)
> which is referenced in the SVG spec
> (http://www.w3.org/TR/2001/PR-SVG-20010719/painting.html#SpecifyingPaint)
> offers several RGB color representations.:
>
> EM { color: #f00 }              /* #rgb */
> EM { color: #ff0000 }           /* #rrggbb */
> EM { color: rgb(255,0,0) }      /* integer range 0 - 255 */
> EM { color: rgb(100%, 0%, 0%) } /* float range 0.0% - 100.0% */
>
> It looks like batik is trying a combination of the 3rd and 4th, using
> values between 0 and 255, but doing do with a float, instead of an integer
> format.

This is a bug in getCssText(). I will fix it as soon as possible.

>
> * The second problem is the quotaton marks around the font-family style
> attribute.  Because the style attribute itself is written with quotes, the
> attribute is no longer well formed.

getCssText() is suitable for doing things like:

  element.setAttributeNS(null, "style", styles.getCssText());

But you can't write it directly in an XML file. Before you must replace
  ' " < > &  by  &apos; &quot; &lt; &gt; &amp;
--
  Stephane.

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Mime
View raw message