W3C home > Mailing lists > Public > www-forms@w3.org > September 2005

How to group some records by a specific value

From: Catherine Poinsignon <catherine.poinsignon@lombard.lu>
Date: Fri, 30 Sep 2005 10:34:24 +0200
Message-Id: <s33d1501.079@lombard.lu>
To: <www-forms@w3.org>
Hi all,
I have some instance data that looks like this for input of an xforms:
<xforms:instance id="mydata">
<data>    <record><name>name1</name><type>A</type></record>    <record><name>name2</name><type>A</type></record>    <record><name>name3</name><type>A</type></record>    <record><name>name4</name><type>B</type></record>    <record><name>name5</name><type>B</type></record>    <record><name>name6</name><type>C</type></record>    <record><name>name7</name><type>C</type></record></data></xforms:instance> I would like to obtain a result like :Type A            name1            name2            name3Type B            name4            name5Type C            name6            name7 I think it is possible using a repeat, but I don't know how.Could you please help me ? Tanks in advance, Catherine

Received on Friday, 30 September 2005 08:35:49 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:15 UTC