pub enum XsltError {
InvalidStylesheet(String),
UnresolvedReference(String),
Xpath(XmlError),
Terminated(String),
}Variants§
InvalidStylesheet(String)
Stylesheet structure is malformed — e.g. an xsl:template
with neither match= nor name=, a top-level element in
the XSLT namespace that isn’t a declaration.
UnresolvedReference(String)
A template body referenced something the static analysis
couldn’t resolve — e.g. xsl:call-template name="X" where
no template X exists.
Xpath(XmlError)
An XPath expression failed during transformation.
Terminated(String)
<xsl:message terminate="yes"> fired. Carries the
message-element’s stringified content.
Trait Implementations§
Source§impl Error for XsltError
impl Error for XsltError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for XsltError
impl RefUnwindSafe for XsltError
impl Send for XsltError
impl Sync for XsltError
impl Unpin for XsltError
impl UnsafeUnpin for XsltError
impl UnwindSafe for XsltError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more