Interface IXsltEngineFactory
Compiles stylesheets into instances — the point at which a different
XSLT processor is substituted for the built-in one.
public interface IXsltEngineFactory
Methods
FromContent(string)
Compiles a self-contained stylesheet document. There is no base URI, so
IXsltEngine FromContent(string stylesheetXml)
FromFile(string)
Compiles a stylesheet from a file path or URL, which also becomes the base URI for
IXsltEngine FromFile(string stylesheetPath)
Remarks
has always been an interface, and its documentation has always said a
Saxon-backed engine could be added later in an adapter package. It could not: every construction
site named directly, so there was nothing to substitute.
An interface with no seam behind it is documentation that lies.
Both methods are here rather than in because the engine is a compiled
stylesheet, and compiling is exactly what a replacement processor does differently. A route that
allows a per-message stylesheet needs to compile again at runtime, which is why the processor
holds the factory and not just the engine.
The default stays the BCL, XSLT 1.0, no dependencies — the same behaviour a route gets today.
XSLT 2.0/3.0 needs a processor we cannot ship: every .NET
implementation is commercial. What we can give is the contract, so someone who has bought one
registers it in their own project, under their own licence.