This is an offshoot of of this question together with an attempt to use this answer - but something went wrong...
This is the code:
<table>
<row>
<column/>
</row>
<row>
<column/>
<column/>
<column/>
</row>
<row>
<column/>
<column/>
</row>
</table>
The target is the <row>
with the maximum number of <column>
children.
The expression
./table/row/count(column)
correctly outpust
1,3,2
The expression
max(./table/row/count(column))
correctly outputs
3
The expression
./table/row[count(column) = 3]
correctly selects the target row. BUT - the expression
./table/row[count(column) = max(./table/row/count(column))]
results in no matches.
Am I using this incorrectly or is it just the way thing are?