last()
boolean last()
The last
function selects a single object based on the value of the retention
property of the parent object. The objects are ordered as indicated in the retention
property value of the parent object.
The class of the object must be explicitly specified in the search and it must be subject to retention rules.
For information about retention, see Retentions Property .
For example, the following search path selects the last version of the report named Order Product List Report:
/content/package/folder/report[@name='Order Product List Report']/reportVersion[last()]