Refactoring XSL to support outputting unstructured string-name elements with proper sortability.