On 4/24/2018 11:00 AM, Hans van der Meer wrote:
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? you can try \xmlmatch
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------