Re: SVG views in values lists

Jack Jansen <[email protected]> Thu, 6 May 2010 22:49:27 +0200
Newsgroups gmane.comp.web.svg,gmane.comp.web.smil
Message-ID <[email protected]>
Olaf,
from the SMIL Animation side of the picture escaping can be done with =
percent-encoding.
But that leaves the question of when the SVG renderer will decode the =
percent escapes. The URI definition =
<http://tools.ietf.org/html/rfc3986#section-2.4> suggests that it is =
done after splitting the URL on delims and subdelims, so that would mean =
it would be too late.

In SMIL there may be a workaround using SMIL State, but I don't think =
that's allowed in SVG. And, indeed, in SMIL the href attribute isn't =
animatable (but it may contain SMIL State {attribute value template} =
constructs). But in SMIL you could also break open the values animation =
into a sequence of <set> animations.


On  6-May-2010, at 17:34 , Dr. Olaf Hoffmann wrote:

> Hello www-smil and www-svg,
>=20
> within SVG documents so called SVG views are possible, for example
> 'ex.svg#svgView(viewBox(0,0,200,200);preserveAspectRatio(none)))'
>=20
> (note the semicolon as separator...)
>=20
> see:
> http://www.w3.org/TR/SVG11/linking.html#SVGFragmentIdentifiers
>=20
> Such a construction can for example appear as a value of the href=20
> attribute from XLink within an a or image element (and it can appear
> in similar constructions in the src attribute of SMIL media object=20
> elements of course).
> This href attribute is indicated to be animatable in SVG (not sure, if
> the src attributes from media object elements in SMIL are animatable)
> Therefore such constructions can appear within animation=20
> values lists as well:
>=20
> values=3D
> "
> e1.svg#svgView(viewBox(0,0,200,200);preserveAspectRatio(none));
> e2.svg#svgView(viewBox(100,100,100,100);viewTarget(ID));
> e1.svg#svgView(viewBox(-100,-100,400,400);zoomAndPan(disable));
> =
e3.svg#svgView(transform(skewX(-10));viewBox(0,0,200,200);transform(rotate=
(37,100,100)));
> e2.svg#svgView(viewTarget(ID))
> "
>=20
> I would like to know, whether this semicolon within the SVG view does =
create
> a conflict with the values list separator or not?
> I could not find any information about such a situation in SMIL 3 or =
SVG.
> Is it mentioned somewhere?
> If it conflicts, do authors have to mask such a semicolon within a =
list item
> of a values list?
> If yes - how?
>=20
>=20
>=20
> Olaf
>=20
>=20

--
Jack Jansen, <[email protected]>, http://www.cwi.nl/~jack
If I can't dance I don't want to be part of your revolution -- Emma =
Goldman