Saxon.Api

Class DocumentBuilder

Class DomDestination

Class DynamicContext

Class DynamicError

Class EmptyEnumerator

Class ExtensionFunctionCall

Class ExtensionFunctionDefinition

Class InvalidityHandlerWrapper

Class NamespaceConstant

Class NullDestination

Class Processor

Class QName

Class SchemaManager

Class SchemaValidator

Class Serializer

Class StandardLogger

Class StaticContext

Class StaticError

Class TextWriterDestination

Class WhitespacePolicy

Class XPathCompiler

Class XPathExecutable

Class XPathSelector

Class XQueryCompiler

Class XQueryEvaluator

Class XQueryExecutable

Class XdmAnyFunctionType

Class XdmAnyItemType

Class XdmAnyNodeType

Class XdmArray

Class XdmAtomicType

Class XdmAtomicValue

Class XdmDestination

  - Class TreeProtector

Class XdmEmptySequence

Class XdmExternalObjectValue

Class XdmFunctionItem

Class XdmItem

Class XdmItemType

Class XdmMap

Class XdmNode

Class XdmNodeKind

Class XdmSequenceType

Class XdmValue

Class XmlDestination

Class Xslt30Transformer

Class XsltCompiler

Class XsltExecutable

  - Class ParameterDetails

Class XsltPackage

Class XsltTransformer

Enum RecoveryPolicy

Enum SchemaValidationMode

Enum TreeModel

Enum XdmAxis

Interface IInvalidityHandler

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

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