Export (0) Print
Expand All

XsltContext Class

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.

Namespace:  System.Xml.Xsl
Assembly:  System.Xml (in System.Xml.dll)

public abstract class XsltContext : XmlNamespaceManager

The XsltContext type exposes the following members.

  NameDescription
Protected methodXsltContext()Initializes a new instance of the XsltContext class.
Protected methodXsltContext(NameTable)Initializes a new instance of the XsltContext class with the specified NameTable.
Top

  NameDescription
Public propertyDefaultNamespaceGets the namespace URI for the default namespace. (Inherited from XmlNamespaceManager.)
Public propertyNameTableGets the XmlNameTable associated with this object. (Inherited from XmlNamespaceManager.)
Public propertyWhitespaceWhen overridden in a derived class, gets a value indicating whether to include white space nodes in the output.
Top

  NameDescription
Public methodAddNamespaceAdds the given namespace to the collection. (Inherited from XmlNamespaceManager.)
Public methodCompareDocumentWhen 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).
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetEnumeratorReturns an enumerator to use to iterate through the namespaces in the XmlNamespaceManager. (Inherited from XmlNamespaceManager.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetNamespacesInScopeGets a collection of namespace names keyed by prefix which can be used to enumerate the namespaces currently in scope. (Inherited from XmlNamespaceManager.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodHasNamespaceGets a value indicating whether the supplied prefix has a namespace defined for the current pushed scope. (Inherited from XmlNamespaceManager.)
Public methodLookupNamespaceGets the namespace URI for the specified prefix. (Inherited from XmlNamespaceManager.)
Public methodLookupPrefixFinds the prefix declared for the given namespace URI. (Inherited from XmlNamespaceManager.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodPopScopePops a namespace scope off the stack. (Inherited from XmlNamespaceManager.)
Public methodPreserveWhitespaceWhen overridden in a derived class, evaluates whether to preserve white space nodes or strip them for the given context.
Public methodPushScopePushes a namespace scope onto the stack. (Inherited from XmlNamespaceManager.)
Public methodRemoveNamespaceRemoves the given namespace for the given prefix. (Inherited from XmlNamespaceManager.)
Public methodResolveFunctionWhen 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.
Public methodResolveVariableWhen overridden in a derived class, resolves a variable reference and returns an IXsltContextVariable representing the variable.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

For more information on using XsltContext, see article Q324899, "HOW TO: Implement and Use Custom Functions When You Execute XPath Queries in Visual Basic .NET" in the Microsoft Knowledge Base at http://support.microsoft.com.

.NET Framework

Supported in: 4.6, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft