selectPrevious/Next() now returns the selected item.  add
excludedLocalNames to allow exlcuding certain elements in selection.