Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <table1>
- <row>
- <person>person1</person>
- <value>10</value>
- </row>
- <row>
- <person>person2</person>
- <value>20</value>
- </row>
- <row>
- <person>person1</person>
- <value>5</value>
- </row>
- </table1>
- <summaryTable>
- <row>
- <person>person1</person>
- <value_total/>
- </row>
- <row>
- <person>person2</person>
- <value_total/>
- </row>
- </summaryTable>
- <xf:bind id="bind_table1"
- nodeset="table1" repeatableElement="row">
- <xf:bind id="bind_head_table1" nodeset="head" />
- <xf:bind id="bind_row_table1" nodeset="row">
- <xf:bind id="bind_person" nodeset="person" type="xf:string" />
- <xf:bind id="bind_value" nodeset="value" type="xf:integer" />
- </xf:bind>
- </xf:bind>
- <xf:bind id="bind_summaryTable"
- nodeset="summaryTable"
- repeatableElement="row">
- <xf:bind id="bind_head_summaryTable" nodeset="head" />
- <xf:bind id="bind_row_summaryTable" nodeset="row">
- <xf:bind id="bind_person_name" nodeset="person_name" type="xf:string" readonly="true"/>
- <xf:bind id="bind_value_total" nodeset="value_total" type="xf:integer" readonly="true" calculate="SUM(//table1/row[person/text() = ../person_name/text()]/value)"/>
- </xf:bind>
- </xf:bind>
- <xf:bind id="bind_value_total" nodeset="value_total" type="xf:integer" readonly="true" calculate="SUM(//table1/row[person/text() = 'person1']/value)"/>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement