Unicorn XML Toolkit
Version 1.00.00

Namespace EcmaScriptXslt
Class CXsltExtension

class CXsltExtension {
public:
    CXsltExtension(const XGlobalObject &pGlobalObject);
    ~CXsltExtension();
public:
    void Register(
        const CString &strPropertyName,
        const XObject &pXmlObject,
        const XObject &pDomObject,
        const Xslt::XXsltImplementation &pXsltImplementation);
    XObject GetXsltObject();
    };

The XSLT extension package for the ECMAScript interpreter.

This class implements XSLT extensions for ECMAScript interpreter as specified in Unicorn ECMAScript Interpreter Reference Manual. XSLT Extensions Version 2.0.

Every object of this class must be associated with an ECMAScript interpreter (an object of class EcmaScript::CInterpreter ). When an XSLT extension package is constructed, the global object of the associated ECMAScript interpreter must be specified as an argument of the constructor. Once the CXsltExtension object is constructed, its member function Register must be called in order to create the initial set of XSLT extension objects in the object space of the associated ECMAScript interpreter.

Since:
1.00.00
Version:
1.00.00
Author:
Alexey Gokhberg
See Also:
EcmaScript::CObject, EcmaScript::CGlobalObject, Xslt::CXsltImplementation
Constructor/Destructor Summary
CXsltExtension (const XGlobalObject &pGlobalObject);
����������Constructs the XSLT extension package.
~CXsltExtension ();
����������Destroys the XSLT extension package.

Function Summary
void Register (const CString &strPropertyName, const XObject &pXmlObject, const XObject &pDomObject, const Xslt::XXsltImplementation &pXsltImplementation);
����������Registers this XSLT extension package with the associated ECMAScript interpreter.
XObject GetXsltObject ();
����������Returns the XSLT extension root object.

Constructor/Destructor Detail

CXsltExtension

CXsltExtension(const XGlobalObject &pGlobalObject);

Constructs the XSLT extension package.

Parameters:
pGlobalObject - the ECMAScript global object. The ECMAScript interpreter which owns the specified global object will be associated with this XSLT extension package.

~CXsltExtension

~CXsltExtension();

Destroys the XSLT extension package.

Function Detail

Register

void Register(
    const CString &strPropertyName,
    const XObject &pXmlObject,
    const XObject &pDomObject,
    const Xslt::XXsltImplementation &pXsltImplementation);

Registers this XSLT extension package with the associated ECMAScript interpreter.

This function creates the initial set of XSLT extension objects in the object space of the ECMAScript interpreter associated with this XSLT extension package.

The XML extension package (see EcmaScriptXml::CXmlExtension ), as well as the DOM extension package (see EcmaScriptDom::CDomExtension ), must be constructed and registered prior to the registration of this XSLT extension package.

The following information is required for the package registration:

Parameters:
strPropertyName - a string containing the name of the global object property to be bound to the XSLT extension root object
pXmlObject - the XML extension root object
pDomObject - the DOM extension root object
pXsltImplementation - the XSLT implementation

GetXsltObject

XObject GetXsltObject();

Returns the XSLT extension root object.

Returns:
the XSLT extension root object

Unicorn XML Toolkit
Version 1.00.00


This document was created using Unicorn DOC++.

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