nested repeats

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

nested repeats

Deets
I would like to create a set of tables where users can table
(spreadsheet) data.  The problem I am having is in nesting the repeats
to generate the tables.  Does anyone know of an alternative to the
approach I am using or any tips?

I have an XML instance like the following:

<xmldata>
  <columns>
    <column id="1">
      <name>Column 1</name>
    </column>
    <column id="2">
      <name>Column 2</name>
    </column>
    <column id="3">
      <name>Column 3</name>
    </column>
  </columns>
  <tables>
    <table>
      <rows>
        <row>
          <columnValues>
            <columnValue>
              <columnId>1</columnId>
              <value>10</value>
            </columnValue>
            <columnValue>
              <columnId>2</columnId>
              <value>20</value>
            </columnValue>
            <columnValue>
              <columnId>3</columnId>
              <value>30</value>
            </columnValue>
          </columnValues>
          <name>Row 1</name>
        </row>
        <row>
          <columnValues>
            <columnValue>
              <columnId>1</columnId>
              <value>20</value>
            </columnValue>
            <columnValue>
              <columnId>2</columnId>
              <value>40</value>
            </columnValue>
            <columnValue>
              <columnId>3</columnId>
              <value>60</value>
            </columnValue>
          </columnValues>
          <name>Row 2</name>
        </row>
        <row>
          <columnValues>
            <columnValue>
              <columnId>1</columnId>
              <value>30</value>
            </columnValue>
            <columnValue>
              <columnId>2</columnId>
              <value>60</value>
            </columnValue>
            <columnValue>
              <columnId>3</columnId>
              <value>90</value>
            </columnValue>
          </columnValues>
          <name>Row 3</name>
        </row>
      </rows>
    </table>
  </tables>
</xmldata>

My xforms looks like the following:

...
<!-- build the row headers -->
<xforms:repeat nodeset="tables/table">
  <table>
    <thead>
      <tr>
        <td></td>
      <tr>
    </thead>
    <tbody>
      <xforms:repeat nodeset="rows/row">
          <td><xforms:input ref="name"/></td>
      </xforms:repeat>
    </tbody>
  </table>
  <!-- build column data -->
  <xforms:repeat nodeset="../../columns/column">
    <table>
      <thead>
        <tr>
          <td><xforms:output ref="name"/></td>
        <tr>
      </thead>
      <tbody>
        <!-- the problem is here.  I do not know how to get to the
grandparent repeat's context to display only the rows for the current
table -->
        <xforms:repeat nodeset="rows/row[columnId = current()/@id]">
            <td><xforms:input ref="value"/></td>
        </xforms:repeat>
      </tbody>
    </table>
  </xforms:repeat>
</xforms:repeat>
...

Thanks you very much.
_______________________________________________
dev-tech-xforms mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-xforms
Reply | Threaded
Open this post in threaded view
|

Re: nested repeats

Aaron Reed
I don't understand how your data is organized.  Can you give a small
sample?  Looking at your form, it looks like 'tables' contains elements
called 'table' and 'columns'.  If that is not true and instead each
'table' contains 'rows' and 'columns', then you don't need the second
repeat to point to '../../columns/column' but rather 'columns/column'.
If this is really the case, then you can find your grandparent context
by just using ../..  But there is no way to ask a random repeat what its
current context node is.

--Aaron

Deets wrote:

> I would like to create a set of tables where users can table
> (spreadsheet) data.  The problem I am having is in nesting the repeats
> to generate the tables.  Does anyone know of an alternative to the
> approach I am using or any tips?
>
> I have an XML instance like the following:
>
> <xmldata>
>    <columns>
>      <column id="1">
>        <name>Column 1</name>
>      </column>
>      <column id="2">
>        <name>Column 2</name>
>      </column>
>      <column id="3">
>        <name>Column 3</name>
>      </column>
>    </columns>
>    <tables>
>      <table>
>        <rows>
>          <row>
>            <columnValues>
>              <columnValue>
>                <columnId>1</columnId>
>                <value>10</value>
>              </columnValue>
>              <columnValue>
>                <columnId>2</columnId>
>                <value>20</value>
>              </columnValue>
>              <columnValue>
>                <columnId>3</columnId>
>                <value>30</value>
>              </columnValue>
>            </columnValues>
>            <name>Row 1</name>
>          </row>
>          <row>
>            <columnValues>
>              <columnValue>
>                <columnId>1</columnId>
>                <value>20</value>
>              </columnValue>
>              <columnValue>
>                <columnId>2</columnId>
>                <value>40</value>
>              </columnValue>
>              <columnValue>
>                <columnId>3</columnId>
>                <value>60</value>
>              </columnValue>
>            </columnValues>
>            <name>Row 2</name>
>          </row>
>          <row>
>            <columnValues>
>              <columnValue>
>                <columnId>1</columnId>
>                <value>30</value>
>              </columnValue>
>              <columnValue>
>                <columnId>2</columnId>
>                <value>60</value>
>              </columnValue>
>              <columnValue>
>                <columnId>3</columnId>
>                <value>90</value>
>              </columnValue>
>            </columnValues>
>            <name>Row 3</name>
>          </row>
>        </rows>
>      </table>
>    </tables>
> </xmldata>
>
> My xforms looks like the following:
>
> ...
> <!-- build the row headers -->
> <xforms:repeat nodeset="tables/table">
>    <table>
>      <thead>
>        <tr>
>          <td></td>
>        <tr>
>      </thead>
>      <tbody>
>        <xforms:repeat nodeset="rows/row">
>            <td><xforms:input ref="name"/></td>
>        </xforms:repeat>
>      </tbody>
>    </table>
>    <!-- build column data -->
>    <xforms:repeat nodeset="../../columns/column">
>      <table>
>        <thead>
>          <tr>
>            <td><xforms:output ref="name"/></td>
>          <tr>
>        </thead>
>        <tbody>
>          <!-- the problem is here.  I do not know how to get to the
> grandparent repeat's context to display only the rows for the current
> table -->
>          <xforms:repeat nodeset="rows/row[columnId = current()/@id]">
>              <td><xforms:input ref="value"/></td>
>          </xforms:repeat>
>        </tbody>
>      </table>
>    </xforms:repeat>
> </xforms:repeat>
> ...
>
> Thanks you very much.

_______________________________________________
dev-tech-xforms mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-xforms
Reply | Threaded
Open this post in threaded view
|

Re: nested repeats

Deets
Thanks for the reply.  Here is a little more info/specifics on my
problem:

I have been asked to prepare a small application for an organization
that organizes volunteers for charity events.  The users of this
application need to track the hours volunteered by each volunteer and
the category in which each volunteer participated.  The number of
events is relatively small but the number of volunteers is quite
long.  It is their preference to enter the timesheet data in a
spreadsheet/grid-like format.

The organization manages three lists: events and volunteers, and
volunteer categories.  What I need to do is provide a mechanism to
intersect those lists with the hourly data for each volunteer.  The
(partial) instance I came up with is:

<xmlroot>
  <events>
    <event id="1">
      <name>10k AIDS walk</name>
    </event>
    <event id="2">
      <name>5k Run for the Cure</name>
    </event>
  </events>
  <volunteers>
    <volunteer>
      <first_name>John</first_name>
      <last_name>Doe</last_name>
      <participation_category>
        <category>
          <event_id>1</event_id>
          <hours>10.5</hours>
          <name>T-shirt distribution</name>
        </category>
        <category>
          <event_id>2</event_id>
          <hours>6</hours>
          <name>Refreshment coordinator</name>
        </category>
        <category>
          <event_id>2</event_id>
          <hours>4</hours>
          <name>T-shirt distribution</name>
        </category>
      </participation_category>
    </volunteer>
    <volunteer>
      <first_name>Jane</first_name>
      <last_name>Smith</last_name>
      <participation_category>
        <category>
          <event_id>2</event_id>
          <hours>13.5</hours>
          <name>Refreshment coordinator</name>
        </category>
      </participation_category>
    </volunteer>
  </volunteers>
</xmlroot>

The organization would like to enter hourly data by volunteer in the
following tables:

Volunteer: John Doe
------------------------------------------------------------------------------------------------
|                                       | 10k AIDS walk | 5k Run for
the Cure |
------------------------------------------------------------------------------------------------
| T-shirt distribution             |               10.5
|                        4.0 |
------------------------------------------------------------------------------------------------
| Refreshment coordinator   | /////////////////////
|                         6.0 | <-----John doe did not volunteer as a
Refreshment coordinator on 10k AIDS walk
------------------------------------------------------------------------------------------------

Volunteer: Jane Smith
------------------------------------------------------------------------------------------------
|                                       | 10k AIDS walk | 5k Run for
the Cure |
------------------------------------------------------------------------------------------------
| T-shirt distribution             | /////////////////////
| //////////////////////////// |
------------------------------------------------------------------------------------------------
| Refreshment coordinator   | /////////////////////
|                       13.5 |
------------------------------------------------------------------------------------------------

The table's columns and rows are added in a separate part of the
application.  My challenge is creating the tables for easy data entry.

Thanks for your help.




On Dec 3, 1:56 pm, Aaron Reed <[hidden email]> wrote:

> I don't understand how your data is organized.  Can you give a small
> sample?  Looking at your form, it looks like 'tables' contains elements
> called 'table' and 'columns'.  If that is not true and instead each
> 'table' contains 'rows' and 'columns', then you don't need the second
> repeat to point to '../../columns/column' but rather 'columns/column'.
> If this is really the case, then you can find your grandparent context
> by just using ../..  But there is no way to ask a random repeat what its
> current context node is.
>
> --Aaron
>
> Deets wrote:
> > I would like to create a set of tables where users can table
> > (spreadsheet) data.  The problem I am having is in nesting the repeats
> > to generate the tables.  Does anyone know of an alternative to the
> > approach I am using or any tips?
>
> > I have an XML instance like the following:
>
> > <xmldata>
> >    <columns>
> >      <column id="1">
> >        <name>Column 1</name>
> >      </column>
> >      <column id="2">
> >        <name>Column 2</name>
> >      </column>
> >      <column id="3">
> >        <name>Column 3</name>
> >      </column>
> >    </columns>
> >    <tables>
> >      <table>
> >        <rows>
> >          <row>
> >            <columnValues>
> >              <columnValue>
> >                <columnId>1</columnId>
> >                <value>10</value>
> >              </columnValue>
> >              <columnValue>
> >                <columnId>2</columnId>
> >                <value>20</value>
> >              </columnValue>
> >              <columnValue>
> >                <columnId>3</columnId>
> >                <value>30</value>
> >              </columnValue>
> >            </columnValues>
> >            <name>Row 1</name>
> >          </row>
> >          <row>
> >            <columnValues>
> >              <columnValue>
> >                <columnId>1</columnId>
> >                <value>20</value>
> >              </columnValue>
> >              <columnValue>
> >                <columnId>2</columnId>
> >                <value>40</value>
> >              </columnValue>
> >              <columnValue>
> >                <columnId>3</columnId>
> >                <value>60</value>
> >              </columnValue>
> >            </columnValues>
> >            <name>Row 2</name>
> >          </row>
> >          <row>
> >            <columnValues>
> >              <columnValue>
> >                <columnId>1</columnId>
> >                <value>30</value>
> >              </columnValue>
> >              <columnValue>
> >                <columnId>2</columnId>
> >                <value>60</value>
> >              </columnValue>
> >              <columnValue>
> >                <columnId>3</columnId>
> >                <value>90</value>
> >              </columnValue>
> >            </columnValues>
> >            <name>Row 3</name>
> >          </row>
> >        </rows>
> >      </table>
> >    </tables>
> > </xmldata>
>
> > My xforms looks like the following:
>
> > ...
> > <!-- build the row headers -->
> > <xforms:repeat nodeset="tables/table">
> >    <table>
> >      <thead>
> >        <tr>
> >          <td></td>
> >        <tr>
> >      </thead>
> >      <tbody>
> >        <xforms:repeat nodeset="rows/row">
> >            <td><xforms:input ref="name"/></td>
> >        </xforms:repeat>
> >      </tbody>
> >    </table>
> >    <!-- build column data -->
> >    <xforms:repeat nodeset="../../columns/column">
> >      <table>
> >        <thead>
> >          <tr>
> >            <td><xforms:output ref="name"/></td>
> >          <tr>
> >        </thead>
> >        <tbody>
> >          <!-- the problem is here.  I do not know how to get to the
> > grandparent repeat's context to display only the rows for the current
> > table -->
> >          <xforms:repeat nodeset="rows/row[columnId = current()/@id]">
> >              <td><xforms:input ref="value"/></td>
> >          </xforms:repeat>
> >        </tbody>
> >      </table>
> >    </xforms:repeat>
> > </xforms:repeat>
> > ...
>
> > Thanks you very much.

_______________________________________________
dev-tech-xforms mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-xforms
Reply | Threaded
Open this post in threaded view
|

Re: nested repeats

Deets
I fixed up my tables so they display a little prettier in a fixed-
width font.  Thanks again.

Volunteer: John Doe
-----------------------------------------------------------------
|                         | 10k AIDS walk | 5k Run for the Cure |
-----------------------------------------------------------------
| T-shirt distribution    |          10.5 |                 4.0 |
-----------------------------------------------------------------
| Refreshment coordinator | ///////////// |                 6.0 |
-----------------------------------------------------------------

Volunteer: Jane Smith
-----------------------------------------------------------------
|                         | 10k AIDS walk | 5k Run for the Cure |
-----------------------------------------------------------------
| T-shirt distribution    | ///////////// | /////////////////// |
-----------------------------------------------------------------
| Refreshment coordinator | ///////////// |                13.5 |
-----------------------------------------------------------------

>
> The table's columns and rows are added in a separate part of the
> application.  My challenge is creating the tables for easy data entry.
>
> Thanks for your help.
>
> On Dec 3, 1:56 pm, Aaron Reed <[hidden email]> wrote:
>
> > I don't understand how your data is organized.  Can you give a small
> > sample?  Looking at your form, it looks like 'tables' contains elements
> > called 'table' and 'columns'.  If that is not true and instead each
> > 'table' contains 'rows' and 'columns', then you don't need the second
> > repeat to point to '../../columns/column' but rather 'columns/column'.
> > If this is really the case, then you can find your grandparent context
> > by just using ../..  But there is no way to ask a random repeat what its
> > current context node is.
>
> > --Aaron
>
> > Deets wrote:
> > > I would like to create a set of tables where users can table
> > > (spreadsheet) data.  The problem I am having is in nesting the repeats
> > > to generate the tables.  Does anyone know of an alternative to the
> > > approach I am using or any tips?
>
> > > I have an XML instance like the following:
>
> > > <xmldata>
> > >    <columns>
> > >      <column id="1">
> > >        <name>Column 1</name>
> > >      </column>
> > >      <column id="2">
> > >        <name>Column 2</name>
> > >      </column>
> > >      <column id="3">
> > >        <name>Column 3</name>
> > >      </column>
> > >    </columns>
> > >    <tables>
> > >      <table>
> > >        <rows>
> > >          <row>
> > >            <columnValues>
> > >              <columnValue>
> > >                <columnId>1</columnId>
> > >                <value>10</value>
> > >              </columnValue>
> > >              <columnValue>
> > >                <columnId>2</columnId>
> > >                <value>20</value>
> > >              </columnValue>
> > >              <columnValue>
> > >                <columnId>3</columnId>
> > >                <value>30</value>
> > >              </columnValue>
> > >            </columnValues>
> > >            <name>Row 1</name>
> > >          </row>
> > >          <row>
> > >            <columnValues>
> > >              <columnValue>
> > >                <columnId>1</columnId>
> > >                <value>20</value>
> > >              </columnValue>
> > >              <columnValue>
> > >                <columnId>2</columnId>
> > >                <value>40</value>
> > >              </columnValue>
> > >              <columnValue>
> > >                <columnId>3</columnId>
> > >                <value>60</value>
> > >              </columnValue>
> > >            </columnValues>
> > >            <name>Row 2</name>
> > >          </row>
> > >          <row>
> > >            <columnValues>
> > >              <columnValue>
> > >                <columnId>1</columnId>
> > >                <value>30</value>
> > >              </columnValue>
> > >              <columnValue>
> > >                <columnId>2</columnId>
> > >                <value>60</value>
> > >              </columnValue>
> > >              <columnValue>
> > >                <columnId>3</columnId>
> > >                <value>90</value>
> > >              </columnValue>
> > >            </columnValues>
> > >            <name>Row 3</name>
> > >          </row>
> > >        </rows>
> > >      </table>
> > >    </tables>
> > > </xmldata>
>
> > > My xforms looks like the following:
>
> > > ...
> > > <!-- build the row headers -->
> > > <xforms:repeat nodeset="tables/table">
> > >    <table>
> > >      <thead>
> > >        <tr>
> > >          <td></td>
> > >        <tr>
> > >      </thead>
> > >      <tbody>
> > >        <xforms:repeat nodeset="rows/row">
> > >            <td><xforms:input ref="name"/></td>
> > >        </xforms:repeat>
> > >      </tbody>
> > >    </table>
> > >    <!-- build column data -->
> > >    <xforms:repeat nodeset="../../columns/column">
> > >      <table>
> > >        <thead>
> > >          <tr>
> > >            <td><xforms:output ref="name"/></td>
> > >          <tr>
> > >        </thead>
> > >        <tbody>
> > >          <!-- the problem is here.  I do not know how to get to the
> > > grandparent repeat's context to display only the rows for the current
> > > table -->
> > >          <xforms:repeat nodeset="rows/row[columnId = current()/@id]">
> > >              <td><xforms:input ref="value"/></td>
> > >          </xforms:repeat>
> > >        </tbody>
> > >      </table>
> > >    </xforms:repeat>
> > > </xforms:repeat>
> > > ...
>
> > > Thanks you very much.
>
>

_______________________________________________
dev-tech-xforms mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-xforms
Reply | Threaded
Open this post in threaded view
|

Re: nested repeats

Aaron Reed
Sorry that I didn't get back to you earlier.  I was out on vacation
until today.

I got the following to work using the Firefox processor.  It doesn't
work in the Orbeon processor, though.  However, using context() works
for Orbeon and not us.  I don't have time right now to debug why.

<?xml version="1.0" encoding="UTF-8"?>
<!-- basic FO page definition stuff -->
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:xforms="http://www.w3.org/2002/xforms"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" >
     <head>
       <title>Table with repeat testcase</title>

       <xforms:model>
         <xforms:instance xmlns="">
           <xmlroot>
             <events>
               <event uid="1">
                 <name>Event One</name>
               </event>
               <event uid="2">
                 <name>Event Two</name>
               </event>
             </events>
             <users>
               <user>
                 <first_name>John</first_name>
                 <last_name>Doe</last_name>
                 <event_category>
                   <category>
                     <event_id uid="1">1</event_id>
                   </category>
                   <category>
                     <event_id uid="2">2</event_id>
                   </category>
                   <category>
                     <event_id uid="2">2</event_id>
                   </category>
                 </event_category>
               </user>
               <user>
                 <first_name>Jane</first_name>
                 <last_name>Smith</last_name>
                 <event_category>
                   <category>
                     <event_id>2</event_id>
                   </category>
                 </event_category>
               </user>
             </users>
           </xmlroot>

         </xforms:instance>
       </xforms:model>
     </head>

     <body>
       <h2>Table of users</h2>
       <xforms:repeat nodeset="/xmlroot/users/user">
         <xforms:output class="tablecell" value="'user: '"/>
         <xforms:output class="tablecell" value="concat(./first_name,
concat(' ', ./last_name))"/>
         <xforms:repeat nodeset="event_category/category/event_id">
           <xforms:output class="tablecell" value="."/>
           <xforms:output class="tablecell"
value="/xmlroot/events/event[@uid=context()]/name"/>
         </xforms:repeat>
       </xforms:repeat>
     </body>
</html>

I don't know if you'll be able to achieve the exact table layout that
you desire, though.  Doing table headers via xf:repeats with the Firefox
processor doesn't work too well if I remember right.

--Aaron

Deets wrote:

> I fixed up my tables so they display a little prettier in a fixed-
> width font.  Thanks again.
>
> Volunteer: John Doe
> -----------------------------------------------------------------
> |                         | 10k AIDS walk | 5k Run for the Cure |
> -----------------------------------------------------------------
> | T-shirt distribution    |          10.5 |                 4.0 |
> -----------------------------------------------------------------
> | Refreshment coordinator | ///////////// |                 6.0 |
> -----------------------------------------------------------------
>
> Volunteer: Jane Smith
> -----------------------------------------------------------------
> |                         | 10k AIDS walk | 5k Run for the Cure |
> -----------------------------------------------------------------
> | T-shirt distribution    | ///////////// | /////////////////// |
> -----------------------------------------------------------------
> | Refreshment coordinator | ///////////// |                13.5 |
> -----------------------------------------------------------------
>
>>
>> The table's columns and rows are added in a separate part of the
>> application.  My challenge is creating the tables for easy data entry.
>>
>> Thanks for your help.
>>
>> On Dec 3, 1:56 pm, Aaron Reed<[hidden email]>  wrote:
>>
>>> I don't understand how your data is organized.  Can you give a small
>>> sample?  Looking at your form, it looks like 'tables' contains elements
>>> called 'table' and 'columns'.  If that is not true and instead each
>>> 'table' contains 'rows' and 'columns', then you don't need the second
>>> repeat to point to '../../columns/column' but rather 'columns/column'.
>>> If this is really the case, then you can find your grandparent context
>>> by just using ../..  But there is no way to ask a random repeat what its
>>> current context node is.
>>
>>> --Aaron
>>
>>> Deets wrote:
>>>> I would like to create a set of tables where users can table
>>>> (spreadsheet) data.  The problem I am having is in nesting the repeats
>>>> to generate the tables.  Does anyone know of an alternative to the
>>>> approach I am using or any tips?
>>
>>>> I have an XML instance like the following:
>>
>>>> <xmldata>
>>>>     <columns>
>>>>       <column id="1">
>>>>         <name>Column 1</name>
>>>>       </column>
>>>>       <column id="2">
>>>>         <name>Column 2</name>
>>>>       </column>
>>>>       <column id="3">
>>>>         <name>Column 3</name>
>>>>       </column>
>>>>     </columns>
>>>>     <tables>
>>>>       <table>
>>>>         <rows>
>>>>           <row>
>>>>             <columnValues>
>>>>               <columnValue>
>>>>                 <columnId>1</columnId>
>>>>                 <value>10</value>
>>>>               </columnValue>
>>>>               <columnValue>
>>>>                 <columnId>2</columnId>
>>>>                 <value>20</value>
>>>>               </columnValue>
>>>>               <columnValue>
>>>>                 <columnId>3</columnId>
>>>>                 <value>30</value>
>>>>               </columnValue>
>>>>             </columnValues>
>>>>             <name>Row 1</name>
>>>>           </row>
>>>>           <row>
>>>>             <columnValues>
>>>>               <columnValue>
>>>>                 <columnId>1</columnId>
>>>>                 <value>20</value>
>>>>               </columnValue>
>>>>               <columnValue>
>>>>                 <columnId>2</columnId>
>>>>                 <value>40</value>
>>>>               </columnValue>
>>>>               <columnValue>
>>>>                 <columnId>3</columnId>
>>>>                 <value>60</value>
>>>>               </columnValue>
>>>>             </columnValues>
>>>>             <name>Row 2</name>
>>>>           </row>
>>>>           <row>
>>>>             <columnValues>
>>>>               <columnValue>
>>>>                 <columnId>1</columnId>
>>>>                 <value>30</value>
>>>>               </columnValue>
>>>>               <columnValue>
>>>>                 <columnId>2</columnId>
>>>>                 <value>60</value>
>>>>               </columnValue>
>>>>               <columnValue>
>>>>                 <columnId>3</columnId>
>>>>                 <value>90</value>
>>>>               </columnValue>
>>>>             </columnValues>
>>>>             <name>Row 3</name>
>>>>           </row>
>>>>         </rows>
>>>>       </table>
>>>>     </tables>
>>>> </xmldata>
>>
>>>> My xforms looks like the following:
>>
>>>> ...
>>>> <!-- build the row headers -->
>>>> <xforms:repeat nodeset="tables/table">
>>>>     <table>
>>>>       <thead>
>>>>         <tr>
>>>>           <td></td>
>>>>         <tr>
>>>>       </thead>
>>>>       <tbody>
>>>>         <xforms:repeat nodeset="rows/row">
>>>>             <td><xforms:input ref="name"/></td>
>>>>         </xforms:repeat>
>>>>       </tbody>
>>>>     </table>
>>>>     <!-- build column data -->
>>>>     <xforms:repeat nodeset="../../columns/column">
>>>>       <table>
>>>>         <thead>
>>>>           <tr>
>>>>             <td><xforms:output ref="name"/></td>
>>>>           <tr>
>>>>         </thead>
>>>>         <tbody>
>>>>           <!-- the problem is here.  I do not know how to get to the
>>>> grandparent repeat's context to display only the rows for the current
>>>> table -->
>>>>           <xforms:repeat nodeset="rows/row[columnId = current()/@id]">
>>>>               <td><xforms:input ref="value"/></td>
>>>>           </xforms:repeat>
>>>>         </tbody>
>>>>       </table>
>>>>     </xforms:repeat>
>>>> </xforms:repeat>
>>>> ...
>>
>>>> Thanks you very much.
>>
>>
>

_______________________________________________
dev-tech-xforms mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-xforms