I have a data structure which looks something like:
<resultSet>
<result>
<numCorrect>1</numCorrect>
<truthCorrect>4</truthCorrect>
</result>
<result>
<numCorrect>2</numCorrect>
<truthCorrect>4</truthCorrect>
</result>
<result>
<numCorrect>3</numCorrect>
<truthCorrect>5</truthCorrect>
</result>
<result>
<numCorrect>5</numCorrect>
<truthCorrect>6</truthCorrect>
</result>
</resultSet>
I'd like to compute avg((result/numCorrect) div (result/truthCorrect))
, but XSLT doesn't seem to allow element-wise division, how do I compute this average?
If it helps, I'm using Saxon as an XSLT 2.0 processor.