Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class System.​Xml.​Xsl.​XslTransform

Assembly: System.Xml.ReaderWriter

Inheritance: object → XslTransform

Transforms XML data using an Extensible Stylesheet Language for Transformations (XSLT) style sheet.

Properties

public XmlResolver
XmlResolver
Sets the <see cref="T:System.Xml.XmlResolver" /> used to resolve external resources when the <see cref="Overload:System.Xml.Xsl.XslTransform.Transform" /> method is called.

Methods

public void
Load​(string url)
Loads the XSLT style sheet specified by a URL.
url The URL that specifies the XSLT style sheet to load.
public void
Load​(string url, XmlResolver? resolver)
Loads the XSLT style sheet specified by a URL.
url The URL that specifies the XSLT style sheet to load.
resolver The <see cref="T:System.Xml.XmlResolver" /> to use to load the style sheet and any style sheet(s) referenced in <c>xsl:import</c> and <c>xsl:include</c> elements. If this is <see langword="null" /> , a default <see cref="T:System.Xml.XmlUrlResolver" /> with no user credentials is used to open the style sheet. The default <see cref="T:System.Xml.XmlUrlResolver" /> is not used to resolve any external resources in the style sheet, so <c>xsl:import</c> and <c>xsl:include</c> elements are not resolved. The <see cref="T:System.Xml.XmlResolver" /> is not cached after the <see cref="M:System.Xml.Xsl.XslTransform.Load(System.String,System.Xml.XmlResolver)" /> method completes.
public void
Load​(XmlReader stylesheet)
Loads the XSLT style sheet contained in the <see cref="T:System.Xml.XmlReader" /> .
stylesheet An <see cref="T:System.Xml.XmlReader" /> object that contains the XSLT style sheet.
public void
Load​(XmlReader stylesheet, XmlResolver? resolver)
Loads the XSLT style sheet contained in the <see cref="T:System.Xml.XmlReader" /> .
stylesheet An <see cref="T:System.Xml.XmlReader" /> object that contains the XSLT style sheet.
resolver The <see cref="T:System.Xml.XmlResolver" /> used to load any style sheets referenced in <c>xsl:import</c> and <c>xsl:include</c> elements. If this is <see langword="null" /> , external resources are not resolved. The <see cref="T:System.Xml.XmlResolver" /> is not cached after the <see cref="M:System.Xml.Xsl.XslTransform.Load(System.Xml.XmlReader,System.Xml.XmlResolver)" /> method completes.
public void
Load​(XPath.​IXPathNavigable stylesheet)
Loads the XSLT style sheet contained in the <see cref="T:System.Xml.XPath.IXPathNavigable" /> .
stylesheet An object implementing the <see cref="T:System.Xml.XPath.IXPathNavigable" /> interface. In the .NET Framework, this can be either an <see cref="T:System.Xml.XmlNode" /> (typically an <see cref="T:System.Xml.XmlDocument" /> ), or an <see cref="T:System.Xml.XPath.XPathDocument" /> containing the XSLT style sheet.
public void
Load​(XPath.​IXPathNavigable stylesheet, XmlResolver? resolver)
Loads the XSLT style sheet contained in the <see cref="T:System.Xml.XPath.IXPathNavigable" /> .
stylesheet An object implementing the <see cref="T:System.Xml.XPath.IXPathNavigable" /> interface. In the .NET Framework, this can be either an <see cref="T:System.Xml.XmlNode" /> (typically an <see cref="T:System.Xml.XmlDocument" /> ), or an <see cref="T:System.Xml.XPath.XPathDocument" /> containing the XSLT style sheet.
resolver The <see cref="T:System.Xml.XmlResolver" /> used to load any style sheets referenced in <c>xsl:import</c> and <c>xsl:include</c> elements. If this is <see langword="null" /> , external resources are not resolved. The <see cref="T:System.Xml.XmlResolver" /> is not cached after the <see cref="Overload:System.Xml.Xsl.XslTransform.Load" /> method completes.
public void
Load​(XPath.​XPathNavigator stylesheet)
Loads the XSLT style sheet contained in the <see cref="T:System.Xml.XPath.XPathNavigator" /> .
stylesheet An <see cref="T:System.Xml.XPath.XPathNavigator" /> object that contains the XSLT style sheet.
public void
Load​(XPath.​XPathNavigator stylesheet, XmlResolver? resolver)
Loads the XSLT style sheet contained in the <see cref="T:System.Xml.XPath.XPathNavigator" /> .
stylesheet An <see cref="T:System.Xml.XPath.XPathNavigator" /> object that contains the XSLT style sheet.
resolver The <see cref="T:System.Xml.XmlResolver" /> used to load any style sheets referenced in <c>xsl:import</c> and <c>xsl:include</c> elements. If this is <see langword="null" /> , external resources are not resolved. The <see cref="T:System.Xml.XmlResolver" /> is not cached after the <see cref="Overload:System.Xml.Xsl.XslTransform.Load" /> method completes.
public void
Transform​(string inputfile, string outputfile)
Transforms the XML data in the input file and outputs the result to an output file.
inputfile The URL of the source document to be transformed.
outputfile The URL of the output file.
public void
Transform​(string inputfile, string outputfile, XmlResolver? resolver)
Transforms the XML data in the input file and outputs the result to an output file.
inputfile The URL of the source document to be transformed.
outputfile The URL of the output file.
resolver The <see cref="T:System.Xml.XmlResolver" /> used to resolve the XSLT <c>document()</c> function. If this is <see langword="null" /> , the <c>document()</c> function is not resolved. The <see cref="T:System.Xml.XmlResolver" /> is not cached after the <see cref="Overload:System.Xml.Xsl.XslTransform.Transform" /> method completes.
public XmlReader
Transform​(XPath.​IXPathNavigable input, XsltArgumentList? args)
Transforms the XML data in the <see cref="T:System.Xml.XPath.IXPathNavigable" /> using the specified <paramref name="args" /> and outputs the result to an <see cref="T:System.Xml.XmlReader" /> .
Returns An <see cref="T:System.Xml.XmlReader" /> containing the results of the transformation.
input An object implementing the <see cref="T:System.Xml.XPath.IXPathNavigable" /> interface. In the .NET Framework, this can be either an <see cref="T:System.Xml.XmlNode" /> (typically an <see cref="T:System.Xml.XmlDocument" /> ), or an <see cref="T:System.Xml.XPath.XPathDocument" /> containing the data to be transformed.
args An <see cref="T:System.Xml.Xsl.XsltArgumentList" /> containing the namespace-qualified arguments used as input to the transformation.
public void
Transform​(XPath.​IXPathNavigable input, XsltArgumentList? args, IO.​Stream output)
Transforms the XML data in the <see cref="T:System.Xml.XPath.IXPathNavigable" /> using the specified <paramref name="args" /> and outputs the result to a <see cref="T:System.IO.Stream" /> .
input An object implementing the <see cref="T:System.Xml.XPath.IXPathNavigable" /> interface. In the .NET Framework, this can be either an <see cref="T:System.Xml.XmlNode" /> (typically an <see cref="T:System.Xml.XmlDocument" /> ), or an <see cref="T:System.Xml.XPath.XPathDocument" /> containing the data to be transformed.
args An <see cref="T:System.Xml.Xsl.XsltArgumentList" /> containing the namespace-qualified arguments used as input to the transformation.
output The stream to which you want to output.
public void
Transform​(XPath.​IXPathNavigable input, XsltArgumentList? args, IO.​Stream output, XmlResolver? resolver)
Transforms the XML data in the <see cref="T:System.Xml.XPath.IXPathNavigable" /> using the specified <paramref name="args" /> and outputs the result to a <see cref="T:System.IO.Stream" /> .
input An object implementing the <see cref="T:System.Xml.XPath.IXPathNavigable" /> interface. In the .NET Framework, this can be either an <see cref="T:System.Xml.XmlNode" /> (typically an <see cref="T:System.Xml.XmlDocument" /> ), or an <see cref="T:System.Xml.XPath.XPathDocument" /> containing the data to be transformed.
args An <see cref="T:System.Xml.Xsl.XsltArgumentList" /> containing the namespace-qualified arguments used as input to the transformation.
output The stream to which you want to output.
resolver The <see cref="T:System.Xml.XmlResolver" /> used to resolve the XSLT <c>document()</c> function. If this is <see langword="null" /> , the <c>document()</c> function is not resolved. The <see cref="T:System.Xml.XmlResolver" /> is not cached after the <see cref="Overload:System.Xml.Xsl.XslTransform.Transform" /> method completes.
public void
Transform​(XPath.​IXPathNavigable input, XsltArgumentList? args, IO.​TextWriter output)
Transforms the XML data in the <see cref="T:System.Xml.XPath.IXPathNavigable" /> using the specified <paramref name="args" /> and outputs the result to a <see cref="T:System.IO.TextWriter" /> .
input An object implementing the <see cref="T:System.Xml.XPath.IXPathNavigable" /> interface. In the .NET Framework, this can be either an <see cref="T:System.Xml.XmlNode" /> (typically an <see cref="T:System.Xml.XmlDocument" /> ), or an <see cref="T:System.Xml.XPath.XPathDocument" /> containing the data to be transformed.
args An <see cref="T:System.Xml.Xsl.XsltArgumentList" /> containing the namespace-qualified arguments used as input to the transformation.
output The <see cref="T:System.IO.TextWriter" /> to which you want to output.
public void
Transform​(XPath.​IXPathNavigable input, XsltArgumentList? args, IO.​TextWriter output, XmlResolver? resolver)
Transforms the XML data in the <see cref="T:System.Xml.XPath.IXPathNavigable" /> using the specified <paramref name="args" /> and outputs the result to a <see cref="T:System.IO.TextWriter" /> .
input An object implementing the <see cref="T:System.Xml.XPath.IXPathNavigable" /> interface. In the .NET Framework, this can be either an <see cref="T:System.Xml.XmlNode" /> (typically an <see cref="T:System.Xml.XmlDocument" /> ), or an <see cref="T:System.Xml.XPath.XPathDocument" /> containing the data to be transformed.
args An <see cref="T:System.Xml.Xsl.XsltArgumentList" /> containing the namespace-qualified arguments used as input to the transformation.
output The <see cref="T:System.IO.TextWriter" /> to which you want to output.
resolver The <see cref="T:System.Xml.XmlResolver" /> used to resolve the XSLT <c>document()</c> function. If this is <see langword="null" /> , the <c>document()</c> function is not resolved. The <see cref="T:System.Xml.XmlResolver" /> is not cached after the <see cref="M:System.Xml.Xsl.XslTransform.Transform(System.Xml.XPath.IXPathNavigable,System.Xml.Xsl.XsltArgumentList,System.IO.TextWriter,System.Xml.XmlResolver)" /> method completes.
public XmlReader
Transform​(XPath.​IXPathNavigable input, XsltArgumentList? args, XmlResolver? resolver)
Transforms the XML data in the <see cref="T:System.Xml.XPath.IXPathNavigable" /> using the specified <paramref name="args" /> and outputs the result to an <see cref="T:System.Xml.XmlReader" /> .
Returns An <see cref="T:System.Xml.XmlReader" /> containing the results of the transformation.
input An object implementing the <see cref="T:System.Xml.XPath.IXPathNavigable" /> interface. In the .NET Framework, this can be either an <see cref="T:System.Xml.XmlNode" /> (typically an <see cref="T:System.Xml.XmlDocument" /> ), or an <see cref="T:System.Xml.XPath.XPathDocument" /> containing the data to be transformed.
args An <see cref="T:System.Xml.Xsl.XsltArgumentList" /> containing the namespace-qualified arguments used as input to the transformation.
resolver The <see cref="T:System.Xml.XmlResolver" /> used to resolve the XSLT <c>document()</c> function. If this is <see langword="null" /> , the <c>document()</c> function is not resolved. The <see cref="T:System.Xml.XmlResolver" /> is not cached after the <see cref="M:System.Xml.Xsl.XslTransform.Transform(System.Xml.XPath.IXPathNavigable,System.Xml.Xsl.XsltArgumentList,System.Xml.XmlResolver)" /> method completes.
public void
Transform​(XPath.​IXPathNavigable input, XsltArgumentList? args, XmlWriter output)
Transforms the XML data in the <see cref="T:System.Xml.XPath.IXPathNavigable" /> using the specified <paramref name="args" /> and outputs the result to an <see cref="T:System.Xml.XmlWriter" /> .
input An object implementing the <see cref="T:System.Xml.XPath.IXPathNavigable" /> interface. In the .NET Framework, this can be either an <see cref="T:System.Xml.XmlNode" /> (typically an <see cref="T:System.Xml.XmlDocument" /> ), or an <see cref="T:System.Xml.XPath.XPathDocument" /> containing the data to be transformed.
args An <see cref="T:System.Xml.Xsl.XsltArgumentList" /> containing the namespace-qualified arguments used as input to the transformation.
output The <see cref="T:System.Xml.XmlWriter" /> to which you want to output.
public void
Transform​(XPath.​IXPathNavigable input, XsltArgumentList? args, XmlWriter output, XmlResolver? resolver)
Transforms the XML data in the <see cref="T:System.Xml.XPath.IXPathNavigable" /> using the specified <paramref name="args" /> and outputs the result to an <see cref="T:System.Xml.XmlWriter" /> .
input An object implementing the <see cref="T:System.Xml.XPath.IXPathNavigable" /> interface. In the .NET Framework, this can be either an <see cref="T:System.Xml.XmlNode" /> (typically an <see cref="T:System.Xml.XmlDocument" /> ), or an <see cref="T:System.Xml.XPath.XPathDocument" /> containing the data to be transformed.
args An <see cref="T:System.Xml.Xsl.XsltArgumentList" /> containing the namespace-qualified arguments used as input to the transformation.
output The <see cref="T:System.Xml.XmlWriter" /> to which you want to output.
resolver The <see cref="T:System.Xml.XmlResolver" /> used to resolve the XSLT <c>document()</c> function. If this is <see langword="null" /> , the <c>document()</c> function is not resolved. The <see cref="T:System.Xml.XmlResolver" /> is not cached after the <see cref="M:System.Xml.Xsl.XslTransform.Transform(System.Xml.XPath.IXPathNavigable,System.Xml.Xsl.XsltArgumentList,System.Xml.XmlWriter,System.Xml.XmlResolver)" /> method completes.
public XmlReader
Transform​(XPath.​XPathNavigator input, XsltArgumentList? args)
Transforms the XML data in the <see cref="T:System.Xml.XPath.XPathNavigator" /> using the specified <paramref name="args" /> and outputs the result to an <see cref="T:System.Xml.XmlReader" /> .
Returns An <see cref="T:System.Xml.XmlReader" /> containing the results of the transformation.
input An <see cref="T:System.Xml.XPath.XPathNavigator" /> containing the data to be transformed.
args An <see cref="T:System.Xml.Xsl.XsltArgumentList" /> containing the namespace-qualified arguments used as input to the transformation.
public void
Transform​(XPath.​XPathNavigator input, XsltArgumentList? args, IO.​Stream output)
Transforms the XML data in the <see cref="T:System.Xml.XPath.XPathNavigator" /> using the specified <paramref name="args" /> and outputs the result to a <see cref="T:System.IO.Stream" /> .
input An <see cref="T:System.Xml.XPath.XPathNavigator" /> containing the data to be transformed.
args An <see cref="T:System.Xml.Xsl.XsltArgumentList" /> containing the namespace-qualified arguments used as input to the transformation.
output The stream to which you want to output.
public void
Transform​(XPath.​XPathNavigator input, XsltArgumentList? args, IO.​Stream output, XmlResolver? resolver)
Transforms the XML data in the <see cref="T:System.Xml.XPath.XPathNavigator" /> using the specified <paramref name="args" /> and outputs the result to a <see cref="T:System.IO.Stream" /> .
input An <see cref="T:System.Xml.XPath.XPathNavigator" /> containing the data to be transformed.
args An <see cref="T:System.Xml.Xsl.XsltArgumentList" /> containing the namespace-qualified arguments used as input to the transformation.
output The stream to which you want to output.
resolver The <see cref="T:System.Xml.XmlResolver" /> used to resolve the XSLT <c>document()</c> function. If this is <see langword="null" /> , the <c>document()</c> function is not resolved. The <see cref="T:System.Xml.XmlResolver" /> is not cached after the <see cref="M:System.Xml.Xsl.XslTransform.Transform(System.Xml.XPath.XPathNavigator,System.Xml.Xsl.XsltArgumentList,System.IO.Stream,System.Xml.XmlResolver)" /> method completes.
public void
Transform​(XPath.​XPathNavigator input, XsltArgumentList? args, IO.​TextWriter output)
Transforms the XML data in the <see cref="T:System.Xml.XPath.XPathNavigator" /> using the specified <paramref name="args" /> and outputs the result to a <see cref="T:System.IO.TextWriter" /> .
input An <see cref="T:System.Xml.XPath.XPathNavigator" /> containing the data to be transformed.
args An <see cref="T:System.Xml.Xsl.XsltArgumentList" /> containing the namespace-qualified arguments used as input to the transformation.
output The <see cref="T:System.IO.TextWriter" /> to which you want to output.
public void
Transform​(XPath.​XPathNavigator input, XsltArgumentList? args, IO.​TextWriter output, XmlResolver? resolver)
Transforms the XML data in the <see cref="T:System.Xml.XPath.XPathNavigator" /> using the specified <paramref name="args" /> and outputs the result to a <see cref="T:System.IO.TextWriter" /> .
input An <see cref="T:System.Xml.XPath.XPathNavigator" /> containing the data to be transformed.
args An <see cref="T:System.Xml.Xsl.XsltArgumentList" /> containing the namespace-qualified arguments used as input to the transformation.
output The <see cref="T:System.IO.TextWriter" /> to which you want to output.
resolver The <see cref="T:System.Xml.XmlResolver" /> used to resolve the XSLT <c>document()</c> function. If this is <see langword="null" /> , the <c>document()</c> function is not resolved. The <see cref="T:System.Xml.XmlResolver" /> is not cached after the <see cref="M:System.Xml.Xsl.XslTransform.Transform(System.Xml.XPath.XPathNavigator,System.Xml.Xsl.XsltArgumentList,System.IO.TextWriter,System.Xml.XmlResolver)" /> method completes.
public XmlReader
Transform​(XPath.​XPathNavigator input, XsltArgumentList? args, XmlResolver? resolver)
Transforms the XML data in the <see cref="T:System.Xml.XPath.XPathNavigator" /> using the specified <paramref name="args" /> and outputs the result to an <see cref="T:System.Xml.XmlReader" /> .
Returns An <see cref="T:System.Xml.XmlReader" /> containing the results of the transformation.
input An <see cref="T:System.Xml.XPath.XPathNavigator" /> containing the data to be transformed.
args An <see cref="T:System.Xml.Xsl.XsltArgumentList" /> containing the namespace-qualified arguments used as input to the transformation.
resolver The <see cref="T:System.Xml.XmlResolver" /> used to resolve the XSLT <c>document()</c> function. If this is <see langword="null" /> , the <c>document()</c> function is not resolved. The <see cref="T:System.Xml.XmlResolver" /> is not cached after the <see cref="M:System.Xml.Xsl.XslTransform.Transform(System.Xml.XPath.XPathNavigator,System.Xml.Xsl.XsltArgumentList,System.Xml.XmlResolver)" /> method completes.
public void
Transform​(XPath.​XPathNavigator input, XsltArgumentList? args, XmlWriter output)
Transforms the XML data in the <see cref="T:System.Xml.XPath.XPathNavigator" /> using the specified args and outputs the result to an <see cref="T:System.Xml.XmlWriter" /> .
input An <see cref="T:System.Xml.XPath.XPathNavigator" /> containing the data to be transformed.
args An <see cref="T:System.Xml.Xsl.XsltArgumentList" /> containing the namespace-qualified arguments used as input to the transformation.
output The <see cref="T:System.Xml.XmlWriter" /> to which you want to output.
public void
Transform​(XPath.​XPathNavigator input, XsltArgumentList? args, XmlWriter output, XmlResolver? resolver)
Transforms the XML data in the <see cref="T:System.Xml.XPath.XPathNavigator" /> using the specified args and outputs the result to an <see cref="T:System.Xml.XmlWriter" /> .
input An <see cref="T:System.Xml.XPath.XPathNavigator" /> containing the data to be transformed.
args An <see cref="T:System.Xml.Xsl.XsltArgumentList" /> containing the namespace-qualified arguments used as input to the transformation.
output The <see cref="T:System.Xml.XmlWriter" /> to which you want to output.
resolver The <see cref="T:System.Xml.XmlResolver" /> used to resolve the XSLT <c>document()</c> function. If this is <see langword="null" /> , the <c>document()</c> function is not resolved. The <see cref="T:System.Xml.XmlResolver" /> is not cached after the <see cref="M:System.Xml.Xsl.XslTransform.Transform(System.Xml.XPath.XPathNavigator,System.Xml.Xsl.XsltArgumentList,System.Xml.XmlWriter,System.Xml.XmlResolver)" /> method completes.
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object