I believe I misled you, Rémi. I don't think there is such a thing as I 
described, and like you I am complaining that there is not. Sorry.
 
Chaals' solution using <symbol> and then rotating the href:xlink declaratively 
may be as close as one can come to what you are looking for, though I did also 
find myself complaining, when I saw it, that I could find no way to do 
something like
 
<symbol>
<text id="generic" x="0" y="240" font-family="Verdana" font-size="55" 
fill="red">
generic</text>
</symbol>
<use href:xlink="#generic" childValue="4"></use>
<use href:xlink="#generic" childValue="3"></use>
<use href:xlink="#generic" childValue="2"></use>
<use href:xlink="#generic" childValue="1"></use>
 
cannot be used just to conserve keystrokes. Again there is no childValue in the 
spec (nor is there a DOMValue="firstChild.nodeValue" ), but I don't know of 
anything that would accomplish the equivalent. The whole topic of how far 
declarative animation, in the context of a script-free markup language like SVG 
or HTML seems rather appealing as a conceptual endeavor. I think that with just 
a few things added in here or there, it might be made Turing complete, hence 
providing a conceptual alternative to the conventional imperative model. 
Whether humans can actually do declarative programming, or whether we might 
have to hire primates to do the job for us 
(http://www.cnn.com/2007/TECH/science/12/03/chimp.memory.ap/index.html?eref=time_tech),
 seems somewhat unresolved, but the appeal seems to become apparent once one 
has played with it a while.
 
By the way, as Chaals pointed out to me, id=5 might work in browsers, but it is 
probably not okay to have a number as the value of an id. It felt funny as I 
was doing it, and it probably is.
 
Hope this makes sense,
David

________________________________

From: [email protected] on behalf of rémi
Sent: Mon 12/10/2007 6:19 PM
To: [email protected]
Subject: [svg-developers] Re: SVG countdown



Hi,

Le Sun, 09 Dec 2007 19:21:39 -0500, ddailey a écrit:

> In terms of being able to do something like that declaratively, it seems
> like the question has come up before, but I honestly can't remember if
> someone suggested a solution that would actually work anywhere -- I
> rather doubt it -- something like
> 
> <text id="5" x="0" y="240" font-family="Verdana" font-size="55"
> fill="red">5
> <animate DOMValue="firstChild.nodeValue" values="5;4;3;2;1" dur="5s"
> /></text>

Sounds really nice but I couldn't find something related to in the specs 
and google sends me back to... this message !

According to what I quickly read animate and set are only to animate or 
set a single attribute or property over a time.

Thanks.
Rémi.



 


[Non-text portions of this message have been removed]



-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to