The macro \xmlpos{#1} returns the position number of the current node in its parent. However, I would like to know the position number in its parent for the node with the same tag. An example of what I mean:
<parent> <somenode></somenode > <node>inside it \xmlpos{#1} will return 2 but I would like 1> <somenode></somenode > <somenode></somenode > <node>inside it \xmlpos{#1} will return 5 but I would like 2> </parent> Can this be accomplished already or does it require a new API? dr. Hans van der Meer
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________