oxy:current-selected-element() Function

This function returns the fully selected element. If no element is selected, the function returns an empty sequence.

oxy:current-selected-element()[self::p]/b
This example returns the b elements that are children of the currently selected p element.