S
Sebastian Gunreben
Hi,
I spent quite some weeks seaching google groups for a solution,
but unfortunatly I didn't find anything matching my problem.
Perhaps some of you has an idea ...
My XML file looks as follows:
<Table>
<Row AttA="3" AttB="-2" AttC="2" />
<Row AttA="2" AttB="2" AttC="2" />
<Row AttA="-1" AttB="-2" AttC="6" AttC="3" />
...
</Table>
Each row has an arbitrary number of attributes. On this attributes a
function F(AttA, ..., AttC) calculates a value. The values should be
accumulated in the output. E.g. the function F is defined as:
if( AttA == 3 )
value = AttB * AttC;
else
value = AttB + AttC;
The output should look like:
<table>
<tr><td>-4</td></tr>
<tr><td>0</td></tr> <!-- -4 + 4 -->
<tr><td>4</td></tr><!-- -4 + 4 + 4 -->
</table>
To summarize my problem:
I can calculate each row by itself, dependent of the function F.
But I have some difficulties accumulating the results. Does the
solution depend
on the function F? Have you got any ideas?
Best regards
sebastian gunreben
(e-mail address removed)
I spent quite some weeks seaching google groups for a solution,
but unfortunatly I didn't find anything matching my problem.
Perhaps some of you has an idea ...
My XML file looks as follows:
<Table>
<Row AttA="3" AttB="-2" AttC="2" />
<Row AttA="2" AttB="2" AttC="2" />
<Row AttA="-1" AttB="-2" AttC="6" AttC="3" />
...
</Table>
Each row has an arbitrary number of attributes. On this attributes a
function F(AttA, ..., AttC) calculates a value. The values should be
accumulated in the output. E.g. the function F is defined as:
if( AttA == 3 )
value = AttB * AttC;
else
value = AttB + AttC;
The output should look like:
<table>
<tr><td>-4</td></tr>
<tr><td>0</td></tr> <!-- -4 + 4 -->
<tr><td>4</td></tr><!-- -4 + 4 + 4 -->
</table>
To summarize my problem:
I can calculate each row by itself, dependent of the function F.
But I have some difficulties accumulating the results. Does the
solution depend
on the function F? Have you got any ideas?
Best regards
sebastian gunreben
(e-mail address removed)