XsltContext Class
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Encapsulates the current execution context of the Extensible Stylesheet Language for Transformations (XSLT) processor allowing XML Path Language (XPath) to resolve functions, parameters, and namespaces within XPath expressions.
Inheritance Hierarchy
System.Object
System.Xml.XmlNamespaceManager
System.Xml.Xsl.XsltContext
Namespace: System.Xml.Xsl
Assembly: System.Xml.XPath (in System.Xml.XPath.dll)
Syntax
'Declaration
Public MustInherit Class XsltContext _
Inherits XmlNamespaceManager
public abstract class XsltContext : XmlNamespaceManager
The XsltContext type exposes the following members.
Constructors
Name | Description | |
---|---|---|
XsltContext() | Initializes a new instance of the XsltContext class. | |
XsltContext(NameTable) | Initializes a new instance of the XsltContext class with the specified NameTable. |
Top
Properties
Name | Description | |
---|---|---|
DefaultNamespace | Gets the namespace URI for the default namespace. (Inherited from XmlNamespaceManager.) | |
NameTable | Gets the XmlNameTable associated with this object. (Inherited from XmlNamespaceManager.) | |
Whitespace | When overridden in a derived class, gets a value indicating whether to include white space nodes in the output. |
Top
Methods
Name | Description | |
---|---|---|
AddNamespace | Adds the given namespace to the collection. (Inherited from XmlNamespaceManager.) | |
CompareDocument | When overridden in a derived class, compares the base Uniform Resource Identifiers (URIs) of two documents based upon the order the documents were loaded by the XSLT processor (that is, the XslTransform class). | |
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetEnumerator | Returns an enumerator to use to iterate through the namespaces in the XmlNamespaceManager. (Inherited from XmlNamespaceManager.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetNamespacesInScope | Gets a collection of namespace names keyed by prefix which can be used to enumerate the namespaces currently in scope. (Inherited from XmlNamespaceManager.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
HasNamespace | Gets a value indicating whether the supplied prefix has a namespace defined for the current pushed scope. (Inherited from XmlNamespaceManager.) | |
LookupNamespace | Gets the namespace URI for the specified prefix. (Inherited from XmlNamespaceManager.) | |
LookupPrefix | Finds the prefix declared for the given namespace URI. (Inherited from XmlNamespaceManager.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
PopScope | Pops a namespace scope off the stack. (Inherited from XmlNamespaceManager.) | |
PreserveWhitespace | When overridden in a derived class, evaluates whether to preserve white space nodes or strip them for the given context. | |
PushScope | Pushes a namespace scope onto the stack. (Inherited from XmlNamespaceManager.) | |
RemoveNamespace | Removes the given namespace for the given prefix. (Inherited from XmlNamespaceManager.) | |
ResolveFunction | When overridden in a derived class, resolves a function reference and returns an IXsltContextFunction representing the function. The IXsltContextFunction is used at execution time to get the return value of the function. | |
ResolveVariable | When overridden in a derived class, resolves a variable reference and returns an IXsltContextVariable representing the variable. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Version Information
Silverlight
Supported in: 5, 4
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.