J
Jon Thackray
I'm trying to use XPath to enable me to number items within sections
in a paper. I have so far tried about ten things, all of which it
seemed to me should work, and none of which do. Essentially what I
want is a count of the number of sections preceding the section which
is (the unique section) ancestor of the current node. Functionally
this would be
#PrecedingSiblings(SectionAncestorOf(CurrentNode))
But XPath doesn't seem to allow me to express this . I've no doubt it
can, I just can't currently see how. Can somebody please enlighten me.
in a paper. I have so far tried about ten things, all of which it
seemed to me should work, and none of which do. Essentially what I
want is a count of the number of sections preceding the section which
is (the unique section) ancestor of the current node. Functionally
this would be
#PrecedingSiblings(SectionAncestorOf(CurrentNode))
But XPath doesn't seem to allow me to express this . I've no doubt it
can, I just can't currently see how. Can somebody please enlighten me.