Due to stylesheet explicitly targets version="1.0", using an engine that discontinued support of this version end up with an Exception.
So for instance we can't use matcher with ignoreComments() with Saxon >= 9.8. As a workaround we rely on DiffBuilder, providing a specific (fixed) Content wrapper.
Not sure it's easy to deal with the correct version as TransformerFactory don't provide such information.
Maybe XmlUnit could for that particular case, embrace version 2.0 for matcher convenience and provide a CommentLessSourceV1Compatibility to be use with DiffBuilder for old version. After all, 2.0 is released since 2007.
Due to stylesheet explicitly targets version="1.0", using an engine that discontinued support of this version end up with an Exception.
So for instance we can't use matcher with ignoreComments() with Saxon >= 9.8. As a workaround we rely on DiffBuilder, providing a specific (fixed) Content wrapper.
Not sure it's easy to deal with the correct version as TransformerFactory don't provide such information.
Maybe XmlUnit could for that particular case, embrace version 2.0 for matcher convenience and provide a CommentLessSourceV1Compatibility to be use with DiffBuilder for old version. After all, 2.0 is released since 2007.