
On Wed, 26 Apr 2006 13:16:32 -0500 (EST), ted@...11... wrote:
So, how about:
<path d="M 1 2 L 3 4"> <inkscape:patheffect id="org.inkscape.patheffect.a" val1="bob" val2="jack" /> <inkscape:patheffect id="org.inkscape.patheffect.b" var="true" /> <inkscape:patheffect id="org.inkscape.patheffect.a" val1="alvin" val2="jack" /> </path>
Looks good generally.
However, we should reserve id= for uniquely identifying elements within a document. I'd recommend using effect= to identify the effect instead. Inkscape will impose unique id= attributes anyway in this case, which is probably not what you want.
Additionally, if we're going to have attributes like val1=, val2=, etc, those names don't have any meaning; they're basically just positional. I think what I'd like to see is:
<svg:path d="M 1 2 L 3 4"> <inkscape:patheffect effect="org.inkscape.patheffect.a"> <inkscape:param value="bob" /> <inkscape:param value="jack" /> </inkscape:patheffect> <inkscape:patheffect effect="org.inkscape.patheffect.b"> <inkscape:param value="true" /> </inkscape:patheffect> <inkscape:patheffect effect="org.inkscape.patheffect.a"> <inkscape:param value="alvin" /> <inkscape:param value="jack" /> </inkscape:patheffect> </svg:path>
Though at that point, named parameters become easy:
<svg:path d="M 1 2 L 3 4"> <inkscape:patheffect effect="org.inkscape.patheffect.a"> <inkscape:param name="foo" value="bob" /> <inkscape:param name="bar" value="jack" /> </inkscape:patheffect> <inkscape:patheffect effect="org.inkscape.patheffect.b"> <inkscape:param name="zort" value="true" /> </inkscape:patheffect> <inkscape:patheffect effect="org.inkscape.patheffect.a"> <inkscape:param name="foo" value="alvin" /> <inkscape:param name="bar" value="jack" /> </inkscape:patheffect> </svg:path>
-mental