XsltContext XsltContext XsltContext XsltContext Class

Definition

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.

public ref class XsltContext abstract : System::Xml::XmlNamespaceManager
public abstract class XsltContext : System.Xml.XmlNamespaceManager
type XsltContext = class
    inherit XmlNamespaceManager
Public MustInherit Class XsltContext
Inherits XmlNamespaceManager
Inheritance
Derived

Constructors

XsltContext() XsltContext() XsltContext() XsltContext()

Initializes a new instance of the XsltContext class.

XsltContext(NameTable) XsltContext(NameTable) XsltContext(NameTable) XsltContext(NameTable)

Initializes a new instance of the XsltContext class with the specified NameTable.

Properties

DefaultNamespace DefaultNamespace DefaultNamespace DefaultNamespace

Gets the namespace URI for the default namespace.

(Inherited from XmlNamespaceManager)
NameTable NameTable NameTable NameTable

Gets the XmlNameTable associated with this object.

(Inherited from XmlNamespaceManager)
Whitespace Whitespace Whitespace Whitespace

When overridden in a derived class, gets a value indicating whether to include white space nodes in the output.

Methods

AddNamespace(String, String) AddNamespace(String, String) AddNamespace(String, String) AddNamespace(String, String)

Adds the given namespace to the collection.

(Inherited from XmlNamespaceManager)
CompareDocument(String, String) CompareDocument(String, String) CompareDocument(String, String) CompareDocument(String, String)

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) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

Returns an enumerator to use to iterate through the namespaces in the XmlNamespaceManager.

(Inherited from XmlNamespaceManager)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetNamespacesInScope(XmlNamespaceScope) GetNamespacesInScope(XmlNamespaceScope) GetNamespacesInScope(XmlNamespaceScope) GetNamespacesInScope(XmlNamespaceScope)

Gets a collection of namespace names keyed by prefix which can be used to enumerate the namespaces currently in scope.

(Inherited from XmlNamespaceManager)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
HasNamespace(String) HasNamespace(String) HasNamespace(String) HasNamespace(String)

Gets a value indicating whether the supplied prefix has a namespace defined for the current pushed scope.

(Inherited from XmlNamespaceManager)
LookupNamespace(String) LookupNamespace(String) LookupNamespace(String) LookupNamespace(String)

Gets the namespace URI for the specified prefix.

(Inherited from XmlNamespaceManager)
LookupPrefix(String) LookupPrefix(String) LookupPrefix(String) LookupPrefix(String)

Finds the prefix declared for the given namespace URI.

(Inherited from XmlNamespaceManager)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
PopScope() PopScope() PopScope() PopScope()

Pops a namespace scope off the stack.

(Inherited from XmlNamespaceManager)
PreserveWhitespace(XPathNavigator) PreserveWhitespace(XPathNavigator) PreserveWhitespace(XPathNavigator) PreserveWhitespace(XPathNavigator)

When overridden in a derived class, evaluates whether to preserve white space nodes or strip them for the given context.

PushScope() PushScope() PushScope() PushScope()

Pushes a namespace scope onto the stack.

(Inherited from XmlNamespaceManager)
RemoveNamespace(String, String) RemoveNamespace(String, String) RemoveNamespace(String, String) RemoveNamespace(String, String)

Removes the given namespace for the given prefix.

(Inherited from XmlNamespaceManager)
ResolveFunction(String, String, XPathResultType[]) ResolveFunction(String, String, XPathResultType[]) ResolveFunction(String, String, XPathResultType[]) ResolveFunction(String, String, XPathResultType[])

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(String, String) ResolveVariable(String, String) ResolveVariable(String, String) ResolveVariable(String, String)

When overridden in a derived class, resolves a variable reference and returns an IXsltContextVariable representing the variable.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Extension Methods

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Applies to