I am trying to build a macro around callouts and <co> elements. Given a selected <co> node, what Xpath expression can I use to calculate what its position (rank) is within the parent element? The result should be the same number that the docbook stylesheet returns for its counter(n) field.
Have I have missed something obvious? Philip Nye

