IDocumentTypeResolver InterfaceIDocumentTypeResolver InterfaceIDocumentTypeResolver Interface

An interface used to resolve the types of external documents.

Syntax

Public Interface IDocumentTypeResolver
public interface IDocumentTypeResolver
public:
interface class IDocumentTypeResolver
 
The IDocumentTypeResolverIDocumentTypeResolverIDocumentTypeResolver type exposes the following members.

Properties

 PropertyDescription
Public propertyDefaultDocumentTypeDefaultDocumentTypeDefaultDocumentType Gets the static type of all documents accessible from a query.

Top

Methods

 MethodDescription
Public methodResolveDocumentTypeResolveDocumentTypeResolveDocumentType Resolves a URI to the type of the document represented at that URI.

Top

Remarks

The IDocumentTypeResolverIDocumentTypeResolverIDocumentTypeResolver interface is used to resolve the types of calls to the fn:doc function.

The IDocumentTypeResolverIDocumentTypeResolverIDocumentTypeResolver is specified using the DocumentTypeResolverDocumentTypeResolverDocumentTypeResolver property.

The document type resolver represents the statically known documents component of the static context.

If a document returned from the DocumentSetDocumentSetDocumentSet at runtime does not match the type specified by the IDocumentTypeResolverIDocumentTypeResolverIDocumentTypeResolver then an err:XPTY0004 error is raised.