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

Setting attribute values in xf:repeat

From: Robin Berjon <robin.berjon@expway.fr>
Date: Mon, 28 Jun 2004 19:31:58 +0200
Message-ID: <40E0560E.50103@expway.fr>
To: www-forms@w3.org

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 Monday, 28 June 2004 13:32:21 GMT

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