refactored wrap-spans-only to share code

wrap-spans-only is only called when xml that is non-xsl is wrapped -
controlled by the new 'wrap-elements' param