Saxon.Api

Class DocumentBuilder

Class DomDestination

Class DynamicContext

Class DynamicError

Class EmptyEnumerator

Class ExtensionFunctionCall

Class ExtensionFunctionDefinition

Class NullDestination

Class Processor

Class QName

Class SchemaManager

Class SchemaValidator

Class Serializer

Class StaticContext

Class StaticError

Class TextWriterDestination

Class XPathCompiler

Class XPathExecutable

Class XPathSelector

Class XQueryCompiler

Class XQueryEvaluator

Class XQueryExecutable

Class XdmAnyFunctionType

Class XdmAnyItemType

Class XdmAnyNodeType

Class XdmAtomicType

Class XdmAtomicValue

Class XdmDestination

Class XdmEmptySequence

Class XdmItem

Class XdmItemType

Class XdmNode

Class XdmNodeKind

Class XdmSequenceType

Class XdmValue

Class XmlDestination

Class XsltCompiler

Class XsltExecutable

Class XsltTransformer

Enum RecoveryPolicy

Enum SchemaValidationMode

Enum TreeModel

Enum WhitespacePolicy

Enum XdmAxis

Interface IMessageListener

Interface IQueryResolver

Interface IResultDocumentHandler

Interface IXdmEnumerator

Interface IXmlLocation

Interface SchemaResolver

 

Saxon.Api
Class DynamicContext


public class DynamicContext
implements object

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).

 JXPathContext 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 JXPathContext 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 docmentation, available online.