pub struct ResultTree {
pub children: Vec<ResultNode>,
pub output: OutputSpec,
pub character_map: Vec<(char, String)>,
pub secondary: Vec<(String, ResultTree)>,
}Expand description
The complete result of a transformation. Carries the
serialised top-level children plus the effective
<xsl:output> settings the serialiser will honour.
Fields§
§children: Vec<ResultNode>§output: OutputSpec§character_map: Vec<(char, String)>Flattened xsl:character-map substitutions selected by
xsl:output use-character-maps="…" (XSLT 2.0 §20). Empty
for stylesheets that don’t use character maps; populated at
apply time after composing every referenced map. The
serializer consults this list per emitted character.
secondary: Vec<(String, ResultTree)>Secondary result documents written by xsl:result-document href="…" (XSLT 2.0 §19.1): (resolved-href, document). Empty
unless the stylesheet produced secondary output.
Implementations§
Source§impl ResultTree
impl ResultTree
Sourcepub fn to_string(&self) -> Result<String, XsltError>
pub fn to_string(&self) -> Result<String, XsltError>
Serialise the result tree to a string using the effective output method. XSLT 1.0 §16 — method = xml | html | xhtml | text.
Method-dependent defaults follow the XSLT/XQuery Serialization
spec: indent, escape-uri-attributes, and
include-content-type all default to yes for the html and
xhtml output methods, and to no / not-applicable for xml.
Trait Implementations§
Source§impl Clone for ResultTree
impl Clone for ResultTree
Source§fn clone(&self) -> ResultTree
fn clone(&self) -> ResultTree
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more