C# Class CCNet.SourceNotifier.XmlProcessor.TemplateEngine

Incapsulates XSLT transformations.
Exibir arquivo Open project: shuruev/CCNet.Extensions

Public Methods

Method Description
GetCompiledTransform ( string templateName ) : XslCompiledTransform

Retrieves the XslCompiledTransform for the specified template name, using the results caching.

GetProcessedString ( string templateName, XsltArgumentList argumentList, System.Xml.Linq.XDocument data ) : string

Returns the results of XSLT transformation as a string.

WriteProcessed ( string templateName, XsltArgumentList argumentList, System.Xml.Linq.XDocument data, TextWriter outStream ) : void

Writes the results of XSLT transformation into the specified TextWriter.

Method Details

GetCompiledTransform() public static method

Retrieves the XslCompiledTransform for the specified template name, using the results caching.
public static GetCompiledTransform ( string templateName ) : XslCompiledTransform
templateName string
return System.Xml.Xsl.XslCompiledTransform

GetProcessedString() public static method

Returns the results of XSLT transformation as a string.
public static GetProcessedString ( string templateName, XsltArgumentList argumentList, System.Xml.Linq.XDocument data ) : string
templateName string
argumentList System.Xml.Xsl.XsltArgumentList
data System.Xml.Linq.XDocument
return string

WriteProcessed() public static method

Writes the results of XSLT transformation into the specified TextWriter.
public static WriteProcessed ( string templateName, XsltArgumentList argumentList, System.Xml.Linq.XDocument data, TextWriter outStream ) : void
templateName string
argumentList System.Xml.Xsl.XsltArgumentList
data System.Xml.Linq.XDocument
outStream System.IO.TextWriter
return void