W3C home > Mailing lists > Public > www-svg@w3.org > August 2008

Question about href of discard (related to test struct-discard-201-t.svg)

From: Julien Reichel <Julien.Reichel@spinetix.com>
Date: Tue, 5 Aug 2008 11:55:22 +0200
Message-ID: <364D31930BDB974AB40E22C5C2E584ED10D19F@asterix.SPINETIX.local>
To: <www-svg@w3.org>


In the specification for the Discard element [1], it is said that
1) xlink:href = "<XMLRI>" : An IRI reference  to the element to discard
2) If the 'xlink:href' attribute is not provided, then the target
element will be the immediate parent element of the discard element.

What happen if the href is not a valid IRI ? 

I suppose that the discard is NOT applied. Is it a correct understanding
? This might need to be clarified.

Note on the test "struct-discard-201-t.svg"

The second line says: "Starts at 2s, Discards at 4s"

However the code is the following:
<rect xml:id="rect2" x="50" y="35" height="5" width="0" fill="blue"
	<animate attributeName="width" from="0" to="40" begin="2s"
dur="2s" fill="remove"/>
	<discard xlink:href="../images/url(#rect2)" begin="4s"/>

The <discard> is using an invalid IRI (IMHO). Thus as far as I
understand it, the discard is not applied.

However, the <animate> ends at 4s and doesn't freeze. So there is no way
to see graphically if the discard is applied or not. So if the test was
supposed to test the handling of <discard> with invalid IRI, I don't see
how this could be identified by the operator.


[1] http://www.w3.org/TR/SVGMobile12/struct.html#DiscardElement

Julien Reichel, PhD
Technology Architect, SpinetiX S.A.
PSE-C, CH-1015, Lausanne, Switzerland

Tel:     +41 (0) 21 693 89 81
Mail:   julien.reichel@spinetix.com
Get Information : http://www.spinetix.com

Received on Tuesday, 5 August 2008 09:56:01 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:14 UTC