pub struct Transformation {
pub output: String,
pub warnings: Vec<String>,
pub messages: Vec<String>,
}Expand description
The result of a transformation.
Fields§
§output: StringThe result document, serialized as xsl:output asks.
warnings: Vec<String>Recoverable conditions reported as warnings, as Saxon reports them, each
distinct message once in the order first reported, as Saxon’s standard error
reporter prints them: ambiguous template rule matches (XTDE0540: ...), and
dynamic errors raised while matching a pattern, after which the node is taken
not to match (line <L>: <CODE>: An error occurred matching pattern {...}: <message>, L the line of the xsl:template or xsl:number).
messages: Vec<String>The messages of xsl:message, in the order they were made, each its content
written as Saxon-HE 12.10’s message handler writes it: as XML without
declaration nor indentation (text escaped, elements as tags). A message without
content is not kept, as Saxon prints nothing for it. The message of an
xsl:message that terminates is the error’s (TransformError::message, code
XTMM9000).