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
htmlstring
Returns
LoopToXml(XmlElement, Template)
public static void LoopToXml(XmlElement parentElement, Template template)
Parameters
parentElementXmlElementtemplateTemplate
TagsToXml(XmlElement, TagCollection)
public static void TagsToXml(XmlElement parentElement, TagCollection tags)
Parameters
parentElementXmlElementtagsTagCollection
TemplateToXslt(string)
public static void TemplateToXslt(string path)
Parameters
pathstring
XmlXsltTransform(XmlDocument, string)
Parses the XML and XSLT file together.
public static string XmlXsltTransform(XmlDocument xmlDocument, string xsltPath)
Parameters
xmlDocumentXmlDocumentXML document
xsltPathstringPath 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
xmlDocumentXmlDocumentXML document
xsltPathstringPath to the XSLT file. Eg '/Files/Filer/MyFile.xslt' or E:\xslt\MyFile.xslt
xsltArgumentsXsltArgumentListThe 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
xmlDocumentXmlDocumentThe document to parse with the transformer
xsltReaderXmlReaderA 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
xmlDocumentXmlDocumentThe document to parse with the transformer
transformerXslCompiledTransformCompiled XSLT for the transformation
textWriterTextWriterThe 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
xmlDocumentXmlDocumentThe document to parse with the transformer
xslTransformerXslCompiledTransformCompiled XSLT for the transformation
textWriterTextWriterThe textwriter to parse the data to
xsltArgumentsXsltArgumentListThe XsltArgumentList to use in the parsing