On Monday 18 June 2001 22:37, you wrote:
> Batik 1.0 coughs up on this:
>
>   <rect x="10" y="10" width="10" height="10"
>      fill="none" stroke="black" stroke-width="0.5e1"/>
>
> The spec says, in section 4.1, that XML attributes can have
> either decimal or scientific notation.
>
> I can make the opposite case as well, by noting that _property_
> values are decimal notation, and, according to section 1.5,
> "Properties are assigned to elements in the SVG language either
> by presentation attributes on elements in the SVG language or by
> using a styling language such as CSS."
>
> So, if you decide that stroke-width is pure XML, scientific
> notation is OK. If you decide that it's just another way of
> doing a CSS property, scientific notation isn't OK.
> I personally prefer the more liberal interpretation (allowing
> scientific notation), but I do understand that this isn't
> a democracy, and I don't necessarily get a vote.

On one hand, the value for 'real' XML attributes can have scientific notation 
(eg. the attribute x or y of a <rect> element support that).

On the other hand, in SVG, you can found XML presentation attribute. 
Basically, it's a way to write style (what CSS is supposed to do in SVG) but 
using the XML syntax. The important thing is that the value of the attribute 
is not XML (as always by the way) but belongs to the CSS world. In this case, 
the CSS spec does not say that scientific notation is supported so you can 
*not* use this notation for the value of CSS property (aka XML presentation 
attributes).

eg.

x,y for <rect> is ok (belongs to the XML/SVG world)
stroke-width does not work (belong to the CSS world though this can be 
specified using an XML attribute).

Hope this helps.
Thierry.

 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to