W3C home > Mailing lists > Public > www-svg@w3.org > June 2009

[Params] 3.4 The 'param' Attribute Value

From: Dr. Olaf Hoffmann <Dr.O.Hoffmann@gmx.de>
Date: Thu, 18 Jun 2009 12:42:08 +0200
To: www-svg@w3.org
Message-Id: <200906181242.08776.Dr.O.Hoffmann@gmx.de>
Hello,

this comment is about:
http://www.w3.org/TR/2009/WD-SVGParam-20090616/#param-attr-value


It is noted 
attribute-name="param(string) [optional-string]"

If we have for example the attribute content
http://www.w3.org/TR/SVGMobile12/struct.html#ContentAttribute

The value of this attribute is a string.

1. How to distinguish between a string looking like a parameter and
a parameter.

For example:

<metadata role="tooltip"
content="param('sample') is a possibility to change attribute values in a 
declarative way. Add a parameter with a value 'sample' to the URI to modify
a value of the related attribute." />

Doesn't it need some magical escapes to indicate whether 
param('string') [optional-string]
is a parameter or only a string fragment?

2. Is it ok to insert a parameter in the middle of a string?
Example:

<metadata role="tooltip" content="Hello param('name'), activate the animation 
with the blue button top left!" />


3. Backwards compatibility seems to be suboptimal in general, because
typically current viewers will/should not consider in 
"param('string') [optional-string]" the "[optional-string]" as a fallback
value for most attributes or properties, having currently no fallback syntax.
However, unfortunately currently I have no idea, how to improve this.


Olaf
Received on Thursday, 18 June 2009 10:44:27 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:42 GMT