Saxon.Api

 

 

Saxon.Api

Class DynamicContext


public class DynamicContext

The class DynamicContext provides information about the dynamic context of an expression

Property Summary

 XdmItem ContextItem

The context item. May be null if no context item is defined

 int ContextPosition

The context position (equivalent to the XPath position() function).

 int ContextSize

The context size (equivalent to the XPath last() function).

 net.sf.saxon.expr.XPathContext Implementation

The underlying object in the Saxon implementation, an instance of class net.sf.saxon.expr.XPathContext

 

Property Detail

ContextItem

public XdmItem ContextItem {get; }

The context item. May be null if no context item is defined

ContextPosition

public int ContextPosition {get; }

The context position (equivalent to the XPath position() function).

Calling this method throws an exception if the context item is undefined.

ContextSize

public int ContextSize {get; }

The context size (equivalent to the XPath last() function).

Calling this method throws an exception if the context item is undefined.

Implementation

public net.sf.saxon.expr.XPathContext Implementation {get; }

The underlying object in the Saxon implementation, an instance of class net.sf.saxon.expr.XPathContext

This property provides access to internal methods in the Saxon engine that are not specifically exposed in the .NET API. In general these methods should be considered to be less stable than the classes in the Saxon.Api namespace.

The internal methods follow Java naming conventions rather than .NET conventions.

Information about the returned object (and the objects it provides access to) is included in the Saxon JavaDoc documentation, see net.sf.saxon.expr.XPathContext