Interface IXsltEngine

Namespace: redb.Route.Xslt
Assembly: redb.Route.dll

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

Methods

Transform(object?, XsltOutput, IReadOnlyDictionary<string, object?>?)

Transforms body through the compiled stylesheet and materialises the result

object Transform(object? body, XsltOutput output, IReadOnlyDictionary<string, object?>? parameters)