Unicorn XML Toolkit
Version 1.50.00

Namespace Xml
Class CXsltStylesheet

class CXsltStylesheet: public CInterface {
public:
    CXsltStylesheet(
        CToolkitBase *pToolkitBase,
        const WCHAR *pszUri);
    CXsltStylesheet(
        CToolkitBase *pToolkitBase,
        const WCHAR *pszUri, 
        Dom::INode *pNode);
    CXsltStylesheet(
        CToolkitBase *pToolkitBase,
        const WCHAR *pszUri, 
        Sax::CXmlReader *pReader);
    ~CXsltStylesheet();
public:
    Xslt::CStylesheetHandler *GetStylesheetHandler();
    };
typedef XInterface<CXsltStylesheet> XXsltStylesheet;

The precompiled XSLT stylesheet.

Objects of this class may be used to precompile and cache in memory frequently used XSLT stylesheets, so they will become instantly available for XSLT processors ( CXsltProcessor ).

The stylesheet can be constructed from one of three sources: from the XML document located via the specified URI, from the DOM/XDM sub-tree rooted at the specified node, or from the SAX content stream provided by the specfied SAX XML reader.

See Uri for details of the URI support.

Since:
1.50.00
Version:
1.50.00
Author:
Alexey Gokhberg
See Also:
CToolkitBase, Sax::CDtdHandler, Sax::CEntityResolver, Sax::CContentHandler, Sax::CErrorHandler, Sax::CInputSource, Sax::CXmlReader, Dom::INode
Constructor/Destructor Summary
CXsltStylesheet (CToolkitBase *pToolkitBase, const WCHAR *pszUri);
����������Constructs the XSLT stylesheet from an XML document located via URI.
CXsltStylesheet (CToolkitBase *pToolkitBase, const WCHAR *pszUri, Dom::INode *pNode);
����������Constructs the XSLT stylesheet from an XML fragment rooted at the specified DOM/XDM node.
CXsltStylesheet (CToolkitBase *pToolkitBase, const WCHAR *pszUri, Sax::CXmlReader *pReader);
����������Constructs the XSLT stylesheet from a content stream provided by the specified SAX XML reader.
~CXsltStylesheet ();
����������Destroys the XSLT stylesheet

Function Summary
Xslt::CStylesheetHandler�* GetStylesheetHandler ();
����������Returns the internal representation of XSLT stylesheet encapsulated in this object.

Constructor/Destructor Detail

CXsltStylesheet

CXsltStylesheet(
    CToolkitBase *pToolkitBase,
    const WCHAR *pszUri);

Constructs the XSLT stylesheet from an XML document located via URI.

Parameters:
pToolkitBase - the master toolkit base
pszUri - the source URI

CXsltStylesheet

CXsltStylesheet(
    CToolkitBase *pToolkitBase,
    const WCHAR *pszUri, 
    Dom::INode *pNode);

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

The source URI passed to the constructor 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 constructor 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:
pToolkitBase - the master toolkit base
pszUri - the source URI
pNode - the root of the sub-tree representing the stylesheet source

CXsltStylesheet

CXsltStylesheet(
    CToolkitBase *pToolkitBase,
    const WCHAR *pszUri, 
    Sax::CXmlReader *pReader);

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

The source URI passed to the constructor 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:
pToolkitBase - the master toolkit base
pszUri - the source URI
pReader - the SAX XML reader providing the SAX content stream representing the stylesheet source

~CXsltStylesheet

~CXsltStylesheet();

Destroys the XSLT stylesheet

Function Detail

GetStylesheetHandler

Xslt::CStylesheetHandler *GetStylesheetHandler();

Returns the internal representation of XSLT stylesheet encapsulated in this object.

This method is intended mainly for the toolkit internal use.

Returns:
the internal representation of XSLT stylesheet encapsulated in this object

Unicorn XML Toolkit
Version 1.50.00


This document was created using Unicorn DOC++.

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