- From: Jon Ferraiolo <jferraio@Adobe.COM>
- Date: Mon, 05 Jun 2000 09:31:18 -0700
- To: svg@movspclr.co.uk
- Cc: www-svg@w3.org
Justin,
You have found a bug in the spec. A semicolon is invalid within a
'transform' specification. The only valid separators are white space and/or
a comma.
Another error in the same example - the ellipse is rotated the wrong way.
The rotation angle needs to be -30 instead of +30.
I searched the rest of the spec and I believe this is the only place which
had an incorrect semicolon within a 'transform' attribute.
I will fix this example. Thanks for pointing this out.
Jon Ferraiolo
SVG Editor
Adobe Systems Incorporated
At 09:11 PM 6/4/00 +0100, Justin Fletcher - SVG wrote:
>Hiya,
>
>I'm working on an SVG converter and have, at present, implemented a simple
>parser for the transform attribute as per the BNF in section 7.6 of the
>03 March 2000 draft.
>
>However, within this same specification, I find section 9.4 citing the
>following SVG :
>
>--8<--------
><?xml version="1.0" standalone="no"?>
><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000303 Stylable//EN"
>
"http://www.w3.org/TR/2000/03/WD-SVG-20000303/DTD/svg-20000303-stylable.dtd">
><svg width="12cm" height="4cm" viewBox="0 0 1200 400">
> <desc>Example ellipse01 - ellipses expressed in user coordinates</desc>
>
> <g transform="translate(300 200)">
> <ellipse rx="250" ry="100"
> style="fill:red" />
> </g>
>
> <ellipse transform="translate(900 200); rotate(30)"
> rx="250" ry="100"
> style="fill:none; stroke:blue; stroke-width: 20" />
>
></svg>
>--8<--------
>
>The second ellipse entry uses a semicolon (';') as a transform separator.
>This is not allowed - as far as I can see - within the BNF of section 7.6.
>
>Is the specification for transform correct, or is ';' also a separator for
>transform types ?
>
>[at present, my converter performs the transforms up to the ';' before
> giving up as it doesn't understand that]
>
>--
>Justin Fletcher, SVG developer for RISC OS
>URL: http://www.movspclr.co.uk/
>
Received on Monday, 5 June 2000 12:29:07 UTC