Unicorn XML Toolkit
Version 1.50.00

Namespace Xml
Class CXsltBase

class CXsltBase: public CInterface {
public:
    CXsltBase(CToolkitBase *pToolkitBase);
    ~CXsltBase();
public:
    XXsltStylesheet CreateStylesheet(const WCHAR *pszUri);
    XXsltStylesheet CreateStylesheet(
        const WCHAR *pszUri, Dom::INode *pNode);
    XXsltStylesheet CreateStylesheet(
        const WCHAR *pszUri, Sax::CXmlReader *pReader);
    XXsltProcessor CreateProcessor();
    };
typedef XInterface<CXsltBase> XXsltBase;

Encapsulates toolkit functionality related to XSLT.

Since:
1.50.00
Version:
1.50.00
Author:
Alexey Gokhberg
See Also:
CToolkitBase, CXsltStylesheet, CXsltProcessor, Sax::CXmlReader, Dom::INode
Constructor/Destructor Summary
CXsltBase (CToolkitBase *pToolkitBase);
����������Constructs the toolkit XSLT base.
~CXsltBase ();
����������Destroys the toolkit XSLT base.

Function Summary
XXsltStylesheet CreateStylesheet (const WCHAR *pszUri);
����������Creates the precompiled XSLT stylesheet from an XML document located via URI.
XXsltStylesheet CreateStylesheet (const WCHAR *pszUri, Dom::INode *pNode);
����������Creates the precompiled XSLT stylesheet from an XML fragment rooted at the specified DOM/XDM node.
XXsltStylesheet CreateStylesheet (const WCHAR *pszUri, Sax::CXmlReader *pReader);
����������Creates the precompiled XSLT stylesheet from a content stream provided by the specified SAX XML reader.
XXsltProcessor CreateProcessor ();
����������Creates the new XSLT processor.

Constructor/Destructor Detail

CXsltBase

CXsltBase(CToolkitBase *pToolkitBase);

Constructs the toolkit XSLT base.

Parameters:
pToolkitBase - the master toolkit base

~CXsltBase

~CXsltBase();

Destroys the toolkit XSLT base.

Function Detail

CreateStylesheet

XXsltStylesheet CreateStylesheet(const WCHAR *pszUri);

Creates the precompiled XSLT stylesheet from an XML document located via URI.

See Uri for details of the URI support.

Parameters:
pszUri - the source URI
Returns:
the newly created precompiled stylesheet

CreateStylesheet

XXsltStylesheet CreateStylesheet(
    const WCHAR *pszUri, Dom::INode *pNode);

Creates the precompiled XSLT stylesheet from an XML fragment rooted at the specified DOM/XDM node.

The source URI passed to the method is used solely for resolving relative URI encountered in during the stylesheet parsing; this parameter may be set to the empty string if the stylesheet contains no relative URI, which need to be resolved.

The node passed to the method may be of DOM or XDM model; it must be either a document node or an element node corresponding to the stylesheet root element.

Parameters:
pszUri - the source URI
pNode - the root of the sub-tree representing the stylesheet source
Returns:
the newly created precompiled stylesheet

CreateStylesheet

XXsltStylesheet CreateStylesheet(
    const WCHAR *pszUri, Sax::CXmlReader *pReader);

Creates the precompiled XSLT stylesheet from a content stream provided by the specified SAX XML reader.

The source URI passed to the method is used solely for resolving relative URI encountered in during the stylesheet parsing; this parameter may be set to the empty string if the stylesheet contains no relative URI, which need to be resolved.

Parameters:
pszUri - the source URI
pReader - the SAX XML reader providing the SAX content stream representing the stylesheet source
Returns:
the newly created precompiled stylesheet

CreateProcessor

XXsltProcessor CreateProcessor();

Creates the new XSLT processor.

Returns:
the newly created XSLT processor

Unicorn XML Toolkit
Version 1.50.00


This document was created using Unicorn DOC++.

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