Inherited from MatchResultCombinators
Inherited from ResultLogicalCombinators
Inherited from Results
Inherited from MatchResultLogicalCombinators
Inherited from Expectations
Inherited from ExpectationsDescription
Inherited from TypedEqual
Inherited from ExpectationsCreation
Inherited from MatchResultStackTrace
Inherited from Matcher[T]
A specs2 matcher that matches against the result of an XSLT transformation.
The result of an XSLT transformation can either be a node, which can be one of:
Or it can be an atomic value, which, when converted into a native Java type, can be one of:
Element and document nodes are converted into Source so that we can compare them with XMLUnit.
Node instances in the
expected
Vector are also converted into a Source so that we can compare those to XSLT transformation results.Other node types are kept as is and we compare their string representations.
Atomic values that are the result of an XSLT transformation are converted to native Java types with Saxon's
XdmAtomicValue.getValue()
method and compared to the expected values.