Skip to content

CommentLessSource throws Exception with >= XSLT 2.0 engine (As Saxon 9.8) #99

@stoussaint

Description

@stoussaint

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions