Edit online

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

Example: oxy:current-selected-element Function
oxy:current-selected-element()[self::p]/b

This example returns the <b> elements that are children of the currently selected <p> element.