Class XsltParser
- Namespace
- Dynamicweb.Content.Files
- Assembly
- Dynamicweb.dll
Helper functions to merge XML with XSTL files.
[Obsolete("Do not use")]
public class XsltParser
- Inheritance
-
XsltParser
- Inherited Members
Methods
XmlXsltParse(XmlDocument, string)
Parses the XML and XSLT file together.
public static string XmlXsltParse(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
XmlXsltParse(XmlDocument, string, XsltArgumentList)
[Obsolete("Use XmlXsltTransform instead.")]
public static string XmlXsltParse(XmlDocument xmlDocument, string xsltPath, XsltArgumentList xmlargs)
Parameters
xmlDocument
XmlDocumentxsltPath
stringxmlargs
XsltArgumentList
Returns
XmlXsltParse(XmlDocument, XmlReader)
Parses the XML document using the passed xsltReader.
public static string XmlXsltParse(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
XmlXsltParse(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 XmlXsltParse(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
XmlXsltParse(XmlDocument, XslCompiledTransform, TextWriter, XsltArgumentList)
[Obsolete("Use XmlXsltTransform instead.")]
public static void XmlXsltParse(XmlDocument xmlDocument, XslCompiledTransform transformer, TextWriter textWriter, XsltArgumentList xmlargs)
Parameters
xmlDocument
XmlDocumenttransformer
XslCompiledTransformtextWriter
TextWriterxmlargs
XsltArgumentList
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
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