Unicorn XML Toolkit
Version 1.00.00

Namespace Xslt
Class CTopLevelExtensionContext

class CTopLevelExtensionContext: public CInterface {
public:
    CTopLevelExtensionContext();
    virtual ~CTopLevelExtensionContext();
public:
    virtual void EnterContext(bool bTopLevel) = 0;
    virtual void ExitContext() = 0;
    virtual XExtensionPackageContext FindExtensionPackageContext(
        const CString &strNamespaceUri) = 0;
    };

The abstract representation of the top-level extension context, which encapsulates data shared by all extension contexts.

Implementation of the interface defined by this class is supplied by the toolkit; toolkit users do not need to implement this interface.

Since:
1.00.00
Version:
1.00.00
Author:
Alexey Gokhberg
See Also:
CExtensionPackageContext
Constructor/Destructor Summary
CTopLevelExtensionContext ();
����������Constructs the top-level extension context.
~CTopLevelExtensionContext ();
����������Destroys the top-level extension context.

Function Summary
void EnterContext (bool bTopLevel);
����������Called by the XSLT engine on entering the new context.
void ExitContext ();
����������Called by the XSLT engine on exit from the context.
XExtensionPackageContext FindExtensionPackageContext (const CString &strNamespaceUri);
����������Looks up the extension package context associated with the given namespace URI.

Constructor/Destructor Detail

CTopLevelExtensionContext

CTopLevelExtensionContext();

Constructs the top-level extension context.

~CTopLevelExtensionContext

virtual ~CTopLevelExtensionContext();

Destroys the top-level extension context.

Function Detail

EnterContext

virtual void EnterContext(bool bTopLevel) = 0;

Called by the XSLT engine on entering the new context.

The context is entered when the processing (in particular, instantiation) of the new stylesheet element is started.

Application developers do not use this function.

Parameters:
bTopLevel - indicates that the context entered is associated with the top-level stylesheet element (for example, the template)

ExitContext

virtual void ExitContext() = 0;

Called by the XSLT engine on exit from the context.

The exit from the context occurs when processing (for example, instantiation) of the stylesheet element is finished.

Application developers do not use this function.

FindExtensionPackageContext

virtual XExtensionPackageContext FindExtensionPackageContext(
    const CString &strNamespaceUri) = 0;

Looks up the extension package context associated with the given namespace URI.

Parameters:
strNamespaceUri - the namespace URI to look up
Returns:
the extension package context associated with the given namespace URI in this top-level extension context, or NULL if the extension package is not found

Unicorn XML Toolkit
Version 1.00.00


This document was created using Unicorn DOC++.

Copyright 1999-2001 Unicorn Enterprises SA.
All Rights Reserved.