Refactor version classes for better testability

For now still retaining static methods and code duplication between
modules 'xalan' and 'serializer', at least make the code more easily
testable.
3 files changed