W3C home > Mailing lists > Public > www-forms@w3.org > July 2004

Re: Setting attribute values in xf:repeat

From: Robin Berjon <robin.berjon@expway.fr>
Date: Tue, 27 Jul 2004 15:48:00 +0200
Message-ID: <41065D10.4040003@expway.fr>
To: www-forms@w3.org
Cc: Jon Ferraiolo <jon.ferraiolo@adobe.com>

Hi,

was my question dumb to the point that no one even wanted to consider 
answering it? :)

I know that using sXBL makes the problem go away, but here we are 
considering an implementation in a mobile device, and sXBL is currently 
ruled out.

Without the ability to set attributes thusly, mixing XForms and SVG is 
only marginally useful in the absence of yet another spec to bridge the 
two. We would certainly have to drop plans to support it, which I would 
be quite sorry to have to do.

Thanks for any input,

===

Hi,

I seem to either be missing something, or have found some inconvenience, 
with xf:repeat (I hope the former obviously).

In a nutshell, I need to produce some SVG from inside an xf:repeat in a 
manner similar to how one might produce, say, an XHTML table, but with 
spacial rendering. To express it in a way that the XSLT user should find 
obvious:

   <xf:repeat nodeset='/foo:bar/foo:stuff'>
     <svg:circle r='5' cx='{@x}' cy='{@y}'/>
   </xf:repeat>

Now I know that XForms isn't XSLT, but the ability to do the above would 
be dead useful for forms that don't have "conventional" presentations 
and may be using, for instance drag an drop of little circles as a way 
to modify instance data. But I haven't found any mention of attribute 
value templates as they are called in XSLT. I looked at xf:output to see 
if it could route its information to an attribute, and at xf:setvalue to 
see if it could somehow apply to repeat templates, but have so far not 
found anything.

Am I missing something obvious?

===

-- 
Robin Berjon
Received on Tuesday, 27 July 2004 09:48:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:21:58 GMT