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
LoopToXml(XmlElement, Template)
public static void LoopToXml(XmlElement parentElement, Template template)
Parameters
parentElement
XmlElementtemplate
Template
TagsToXml(XmlElement, TagCollection)
public static void TagsToXml(XmlElement parentElement, TagCollection tags)
Parameters
parentElement
XmlElementtags
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
XmlDocumentXML document
xsltPath
stringPath to the XSLT file. Eg '/Files/Filer/MyFile.xslt' or E:\xslt\MyFile.xslt
Returns
XmlXsltTransform(XmlDocument, string, XsltArgumentList?)
Parses the XML and XSLT file together.
public static string XmlXsltTransform(XmlDocument xmlDocument, string xsltPath, XsltArgumentList? xsltArguments)
Parameters
xmlDocument
XmlDocumentXML document
xsltPath
stringPath to the XSLT file. Eg '/Files/Filer/MyFile.xslt' or E:\xslt\MyFile.xslt
xsltArguments
XsltArgumentListThe XsltArgumentList to use in the parsing
Returns
XmlXsltTransform(XmlDocument, XmlReader)
Parses the XML document using the passed xsltReader.
public static string XmlXsltTransform(XmlDocument xmlDocument, XmlReader xsltReader)
Parameters
xmlDocument
XmlDocumentThe document to parse with the transformer
xsltReader
XmlReaderA xsltreader with the XSLT to transform on the XML document
Returns
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
XmlDocumentThe document to parse with the transformer
transformer
XslCompiledTransformCompiled XSLT for the transformation
textWriter
TextWriterThe 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
XmlDocumentThe document to parse with the transformer
xslTransformer
XslCompiledTransformCompiled XSLT for the transformation
textWriter
TextWriterThe textwriter to parse the data to
xsltArguments
XsltArgumentListThe XsltArgumentList to use in the parsing