Path: redb-route/redb.Route/Xslt/IXsltEngine.cs Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route/Xslt/IXsltEngine.cs ---- namespace redb.Route.Xslt; /// /// The form the XSLT result is materialised into (Apache Camel xslt output option). /// public enum XsltOutput { /// A (default). String, /// A array, encoded per the stylesheet's xsl:output encoding. Bytes, /// An (Camel's DOM). Dom, } /// /// Pluggable XSLT transformation engine — the transformation counterpart of /// . An instance is compiled from a single /// stylesheet and reused (the compiled template is the expensive part, so it is cached in the engine). /// /// The built-in uses the BCL (System.Xml.Xsl, /// XSLT 1.0) with zero external dependencies — matching Apache Camel's default JAXP engine. /// /// /// To substitute a different processor — Saxon for XSLT 2.0/3.0, say — implement /// and register it with context.UseXsltEngine(...) or /// services.AddXsltEngine(...). Implementing this interface alone is not enough and never /// was: until 2026-09-03 every construction site named the built-in engine directly, so the /// substitution this paragraph promised could not actually be made. /// /// public interface IXsltEngine { /// /// Transforms through the compiled stylesheet and materialises the result /// as . /// /// /// The input document: a , array, , /// , or . /// /// The result form (string / bytes / DOM). /// Optional stylesheet parameters (xsl:param), by name. /// The transformed result as a , array, or DOM. object Transform(object? body, XsltOutput output, IReadOnlyDictionary? parameters); }