W3C home > Mailing lists > Public > www-forms@w3.org > March 2007

how to get xforms:output into an attribute?

From: Erik Sjölund <erik.sjolund@gmail.com>
Date: Tue, 20 Mar 2007 10:06:14 +0100
Message-ID: <ddaa1890703200206g2056fce5v8ae3cc086ae917b9@mail.gmail.com>
To: www-forms@w3.org

On the FormFaces help forum I was suggested to send this use case to this list.

http://sourceforge.net/forum/forum.php?thread_id=1696000&forum_id=458081

"Suppose, you have an instance containing a list

<list>
<item link="http://www.example.com" linktext="Example site"/>
<item link="http://www.wikipedia.org" linktext="A really nice
dictionary"/>
</list>

and you want to use the <xforms:repeat> element to iterate over the
list to produce something like this xhtml output,

<a href="http://www.example.com">Example site</a>
<a href="http://www.wikipedia.org">A really nice dictionary</a>

Could this be done with the <xforms:output> element somehow?
 "

I've got the answer that it isn't possible and I also found out that
the same question has been asked before on this list:

question:
http://lists.w3.org/Archives/Public/www-forms/2004Jun/0036.html
answer:
http://lists.w3.org/Archives/Public/www-forms/2004Jul/0028.html

My interest would be to have a SOAP-based bioinformatics web service
that could serve both machines and humans ( through xforms ) at the
same time. Right now it seems that I'd better generate some
xhtml-tables on the server side for the human interaction part. But if
I would be able to set attribute values inside xforms:repeats, the
server wouldn't need to bother with GUI details.

This ought to be a quite common use case. How do you solve it right now?

cheers,
Erik Sjölund
Received on Tuesday, 20 March 2007 11:47:06 GMT

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