Have an attribute which can have multiple values, I want to modify the most recent value (based on the attribute timestamp)

Looked at Lithar's min/max xpath code, but having trouble adapting the following-sibling and preceding-sibling approach described by Lothar to deal with the pecularities of the attribute axis.

Does anyone have a better way to find the specific value of an attribute with the most recent timestamp?

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below...