I have this (pseudo-code) xml
<data>
<ref>one</ref>
<val>20</val>
<ref>two</ref>
<val>200</val>
<ref>three</ref>
<val>2000</val>
</data>
Then, let's say that I don't know which values are in "val" nodes. Thus, I would like to have the xhtml output
-> IF there is any "val" below 100
<div class="low">values 20,200,2000 in one,two,three</div>
-> IF there is any "val" below 1000 but not below 100
<div class="medium">values 20,200,2000 in one,two,three</div>
-> IF there is any "val" below 10000 but not below 1000
<div class="high">values 20,200,2000 in one,two,three</div>
*In the last 2 cases, the initial values should be different
Any idea? Thanks :)
<div>elements must be output? Is that right?