A mock file that lives in a Jimfs file system.
A specs2 matcher that validates the result of an XSLT transformation against an XML Schema.
A specs2 matcher that validates the result of an XSLT transformation against an XML Schema.
To validate an element against an XML Schema, that element must have a top-level definition in the schema.
Specs2 matchers that validate the result of an XSLT transformation against an XML Schema.
A trait that represents an XML transformation.
A trait that represents an XML transformation. Any class that wants to be matched by a XsltResultMatchers must extends this trait.
A StandardOutputResolver that resolves all URIs to point to a new file on the supplied Jimfs file system.
A StandardOutputResolver that resolves all URIs to point to a new file on the supplied Jimfs file system.
If you configure Saxon to use this URI resolver, any document created via <xsl:result-document>
will be saved on
the given transient file system.
A CatalogResolver that resolves any URI that uses the Jimfs.URI_SCHEME scheme against a Jimfs filesystem.
A CatalogResolver that resolves any URI that uses the Jimfs.URI_SCHEME scheme against a Jimfs filesystem.
For any other type of URI, it delegates to CatalogResolver.
An XsltSpecification that validates the result against outputSchema without having to explicitly add
beValid
to every test.
A specs2 matcher that validates the result of an XSLT transformation against an XPath expression.
A specs2 matcher that validates the result of an XSLT transformation against an XPath expression.
TODO: There's duplicate code between this and SchemaValidationMatcher.
A trait that contains XPath-related methods.
A specs2 matcher that matches against the result of an XSLT transformation.
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.
A trait you can mix in to your specs2 specification to compare the results of Transformation instances to a sequence of expected values.
A specification for testing an XSLT stylesheet.
A specification for testing an XSLT stylesheet.
Classes that mix in this trait must define stylesheet, which is a File instance that points to the stylesheet that you want to test.
A trait that lets you run XSLT transformations.
Methods for converting Java values into XML data model (XDM) values.
Functions for converting an XML file into a Node with catalog resolving enabled.
Functions for converting an XML file into a Node with catalog resolving enabled.
You must set the xml.catalog.files
system property for this to work at all.
Code 100% stolen from http://horstmann.com/unblog/2011-12-12/catalog.html.
An XML loader that takes a Node and an XML Schema and returns the same node after validating it and loading any possible default attributes that the schema defines for the input node.
An XML loader that takes a Node and an XML Schema and returns the same node after validating it and loading any possible default attributes that the schema defines for the input node.
Example:
SchemaAwareXMLLoader(<ph> ... </ph>, Input.fromFile("/path/to/dita/topic.xsd")) // Theelement with the default DITA @class attribute value loaded from the given schema. => <ph class="- topic/ph "> ... </ph>
Functions for operating on files in a Jimfs file system.
A mock file that lives in a Jimfs file system.
The URI of the mock file.
The XML (Elem) content of the file.