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 Saxon.Hej.expr.XPathContext

 Processor Processor

The Processor that was used for the application in which this DynamicContext appears

 

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 Saxon.Hej.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

Processor

public Processor Processor {get; }

The Processor that was used for the application in which this DynamicContext appears

There may be circumstances in which this is not available, notably when low-level interfaces are used to create several Processor objects that share the same underlying Saxon.Hej.Configuration. In such cases the method may return null, or may return a different Processor.