Table of Contents

Class TemplateXml

Namespace
Dynamicweb.Rendering
Assembly
Dynamicweb.Core.dll
public sealed class TemplateXml
Inheritance
TemplateXml
Inherited Members

Methods

HtmlStringToXslt(string)

public static string HtmlStringToXslt(string html)

Parameters

html string

Returns

string

LoopToXml(XmlElement, Template)

public static void LoopToXml(XmlElement parentElement, Template template)

Parameters

parentElement XmlElement
template Template

TagsToXml(XmlElement, TagCollection)

public static void TagsToXml(XmlElement parentElement, TagCollection tags)

Parameters

parentElement XmlElement
tags TagCollection

TemplateToXslt(string)

public static void TemplateToXslt(string path)

Parameters

path string

XmlXsltTransform(XmlDocument, string)

Parses the XML and XSLT file together.

public static string XmlXsltTransform(XmlDocument xmlDocument, string xsltPath)

Parameters

xmlDocument XmlDocument

XML document

xsltPath string

Path to the XSLT file. Eg '/Files/Filer/MyFile.xslt' or E:\xslt\MyFile.xslt

Returns

string

XmlXsltTransform(XmlDocument, string, XsltArgumentList?)

Parses the XML and XSLT file together.

public static string XmlXsltTransform(XmlDocument xmlDocument, string xsltPath, XsltArgumentList? xsltArguments)

Parameters

xmlDocument XmlDocument

XML document

xsltPath string

Path to the XSLT file. Eg '/Files/Filer/MyFile.xslt' or E:\xslt\MyFile.xslt

xsltArguments XsltArgumentList

The XsltArgumentList to use in the parsing

Returns

string

XmlXsltTransform(XmlDocument, XmlReader)

Parses the XML document using the passed xsltReader.

public static string XmlXsltTransform(XmlDocument xmlDocument, XmlReader xsltReader)

Parameters

xmlDocument XmlDocument

The document to parse with the transformer

xsltReader XmlReader

A xsltreader with the XSLT to transform on the XML document

Returns

string

XmlXsltTransform(XmlDocument, XslCompiledTransform, TextWriter)

Parses the XML document using the passed transformer. The passed textwriter contains the parsed data after the sub has been called.

public static void XmlXsltTransform(XmlDocument xmlDocument, XslCompiledTransform transformer, TextWriter textWriter)

Parameters

xmlDocument XmlDocument

The document to parse with the transformer

transformer XslCompiledTransform

Compiled XSLT for the transformation

textWriter TextWriter

The textwriter to parse the data to

XmlXsltTransform(XmlDocument, XslCompiledTransform, TextWriter, XsltArgumentList?)

Parses the XML document using the passed transformer. The passed textwriter contains the parsed data after the sub has been called.

public static void XmlXsltTransform(XmlDocument xmlDocument, XslCompiledTransform xslTransformer, TextWriter textWriter, XsltArgumentList? xsltArguments)

Parameters

xmlDocument XmlDocument

The document to parse with the transformer

xslTransformer XslCompiledTransform

Compiled XSLT for the transformation

textWriter TextWriter

The textwriter to parse the data to

xsltArguments XsltArgumentList

The XsltArgumentList to use in the parsing

To top