Xslt Class

Summary

Transforms input documents using a supplied XSLT template.
Assembly
Wyam.Core.dll
Namespace
Wyam.Core.Modules.Templates
Interfaces
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["IModule"] click Interface0 "/api/Wyam.Common.Modules/IModule" Type["Xslt"] class Type type-node

Syntax

public class Xslt : IModule

Remarks

This module uses System.Xml.Xsl.XslCompiledTransform with default settings. This means that the XSLT document() function and embedded scripts are disabled. For more information see the MSDN documentation.

Constructors

Name Summary
Xslt(DocumentConfig) Transforms input documents using a specified XSLT file from the file system as provided by a delegate. This allows you to use different XSLT files depending on the input document.
Xslt(FilePath) Transforms input documents using a specified XSLT file from the file system.
Xslt(IModule[]) Transforms input documents using the output content from the specified modules. The modules are executed for each input document with the current document as the input to the specified modules.

Methods

Name Value Summary
Execute(IReadOnlyList<IDocument>, IExecutionContext) IEnumerable<IDocument>
This should not be called directly, instead call IExecutionContext.Execute() if you need to execute a module from within another module.
GitHub