|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |
class CProcessor: public Sax::CXmlStream { public: CProcessor(const XXsltImplementation &pXsltImplementation); ~CProcessor(); public: bool GetNamespaces(); void SetContentHandler(const Sax::XContentHandler &pHandler); Sax::XContentHandler GetContentHandler(); void Start(); public: void SetSourceUri(const CString &strUri); void SetSourceNode(const XNode &pNode); void SetSourceStream(const Sax::XXmlStream &pStream); CString GetSourceUri(); XNode GetSourceNode(); Sax::XXmlStream GetSourceStream(); public: void SetStylesheetUri(const CString &strUri); void SetStylesheetNode(const XNode &pNode); void SetStylesheetStream(const Sax::XXmlStream &pStream); void SetStylesheet(const XStylesheetHandler &pStylesheet); CString GetStylesheetUri(); XNode GetStylesheetNode(); Sax::XXmlStream GetStylesheetStream(); XStylesheetHandler GetStylesheet(); public: void SetResultUri(const CString &strUri); void SetResultNode(const XNode &pNode); void SetResultHandler(const Sax::XContentHandler &pHandler); CString GetResultUri(); XNode GetResultNode(); Sax::XContentHandler GetResultHandler(); public: void SetOutputHandler(const XOutputHandler &pOutputHandler); XOutputHandler GetOutputHandler(); public: void ResetParam(); void ResetParam(const CExternalParamList ¶mList); void AddParam(const CString &strQName, const XValue &pValue); void AddParam( const CString &strNamespaceUri, const CString &strLocalName, const XValue &pValue); public: void Reset(); };
The XSLT processor.
This class also implements the interface of an XML stream; objects of this class may participate in XML stream / content handler processing chains.
CXsltImplementation, COutputHandler, CStylesheetHandler, Sax::CXmlStream, Sax::CContentHandler, Dom::INode, Xpath::CValue
Constructor/Destructor Summary | |
CProcessor
(const XXsltImplementation &pXsltImplementation);
����������Constructs the XSLT processor. |
|
~CProcessor
();
����������Destroys the XSLT processor. |
Function Summary | |
bool
|
GetNamespaces
();
����������Tests whether the XML stream implemented by this XSLT processor generates namespace information. |
void
|
SetContentHandler
(const Sax::XContentHandler &pHandler);
����������Sets the content handler for the XML stream implemented by this XSLT processor. |
Sax::XContentHandler
|
GetContentHandler
();
����������Returns the content handler assigned to the XML stream implemented by this XSLT processor. |
void
|
Start
();
����������Starts the XML stream implemented by this XSLT processor |
void
|
SetSourceUri
(const CString &strUri);
����������Sets the URI of the source document. |
void
|
SetSourceNode
(const XNode &pNode);
����������Sets the XDM node that represents the root of the source document. |
void
|
SetSourceStream
(const Sax::XXmlStream &pStream);
����������Sets the XML stream that provides content of the source document. |
CString
|
GetSourceUri
();
����������Returns the URI of the source document. |
XNode
|
GetSourceNode
();
����������Returns the XDM node that represents the root of the source document |
Sax::XXmlStream
|
GetSourceStream
();
����������Returns the XML stream that provides content of the source document. |
void
|
SetStylesheetUri
(const CString &strUri);
����������Sets the URI of the stylesheet. |
void
|
SetStylesheetNode
(const XNode &pNode);
����������Sets the XDM node that represents the root of the stylesheet. |
void
|
SetStylesheetStream
(const Sax::XXmlStream &pStream);
����������Sets the XML stream that provides content of the stylesheet. |
void
|
SetStylesheet
(const XStylesheetHandler &pStylesheet);
����������Sets the XSLT stylesheet. |
CString
|
GetStylesheetUri
();
����������Returns the URI of the stylesheet. |
XNode
|
GetStylesheetNode
();
����������Returns the XDM node that represents the root of the stylesheet. |
Sax::XXmlStream
|
GetStylesheetStream
();
����������Returns the XML stream that provides content of the stylesheet. |
XStylesheetHandler
|
GetStylesheet
();
����������Returns the XSLT stylesheet. |
void
|
SetResultUri
(const CString &strUri);
����������Sets the URI of the result document. |
void
|
SetResultNode
(const XNode &pNode);
����������Sets the XDM node to be used as the root of the result document. |
void
|
SetResultHandler
(const Sax::XContentHandler &pHandler);
����������Sets the content handler to receive content of the result document. |
CString
|
GetResultUri
();
����������Returns the URI of the result document. |
XNode
|
GetResultNode
();
����������Returns the XDM node to be used as the root of the result document. |
Sax::XContentHandler
|
GetResultHandler
();
����������Returns the content handler to receive content of the result document. |
void
|
SetOutputHandler
(const XOutputHandler &pOutputHandler);
����������Sets the custom output handler. |
XOutputHandler
|
GetOutputHandler
();
����������Returns the custom output handler. |
void
|
ResetParam
();
����������Clears the list of values of the stylesheet external parameters. |
void
|
ResetParam
(const CExternalParamList ¶mList);
����������Reinitializes the list of values of the stylesheet external parameters, copying the given parameter list. |
void
|
AddParam
(const CString &strQName, const XValue &pValue);
����������Adds the parameter value to the list of values of the stylesheet external parameters; the parameter is identified by its qualified name. |
void
|
AddParam
(const CString &strNamespaceUri, const CString &strLocalName, const XValue &pValue);
����������Adds the parameter value to the list of values of the stylesheet external parameters; the parameter is identified by its namespace URI and local name. |
void
|
Reset
();
����������Resets properties of this processor. |
Constructor/Destructor Detail |
CProcessor(const XXsltImplementation &pXsltImplementation);
Constructs the XSLT processor.
pXsltImplementation
- the XSLT implementation~CProcessor();
Destroys the XSLT processor.
Function Detail |
bool GetNamespaces();
Tests whether the XML stream implemented by this XSLT processor generates namespace information.
true
if the XML stream
implemented by this XSLT processor
generates namespace information;
false
otherwisevoid SetContentHandler(const Sax::XContentHandler &pHandler);
Sets the content handler for the XML stream implemented by this XSLT processor.
pHandler
- the content handlerSax::XContentHandler GetContentHandler();
Returns the content handler assigned to the XML stream implemented by this XSLT processor.
void Start();
Starts the XML stream implemented by this XSLT processor
Call to this function starts XSLT transformation.
void SetSourceUri(const CString &strUri);
Sets the URI of the source document.
strUri
- the URI of the source documentvoid SetSourceNode(const XNode &pNode);
Sets the XDM node that represents the root of the source document.
pNode
- the XDM node that represents
the root of the source documentvoid SetSourceStream(const Sax::XXmlStream &pStream);
Sets the XML stream that provides content of the source document.
pStream
- the XML stream that provides
content of the source documentCString GetSourceUri();
Returns the URI of the source document.
XNode GetSourceNode();
Returns the XDM node that represents the root of the source document
NULL
if
none was specifiedSax::XXmlStream GetSourceStream();
Returns the XML stream that provides content of the source document.
NULL
if
none was specifiedvoid SetStylesheetUri(const CString &strUri);
Sets the URI of the stylesheet.
strUri
- the URI of the stylesheetvoid SetStylesheetNode(const XNode &pNode);
Sets the XDM node that represents the root of the stylesheet.
pNode
- the XDM node that represents
the root of the stylesheetvoid SetStylesheetStream(const Sax::XXmlStream &pStream);
Sets the XML stream that provides content of the stylesheet.
pStream
- the XML stream that provides
content of the stylesheetvoid SetStylesheet(const XStylesheetHandler &pStylesheet);
Sets the XSLT stylesheet.
pStylesheet
- the XSLT stylesheetCString GetStylesheetUri();
Returns the URI of the stylesheet.
XNode GetStylesheetNode();
Returns the XDM node that represents the root of the stylesheet.
NULL
if none
was specifiedSax::XXmlStream GetStylesheetStream();
Returns the XML stream that provides content of the stylesheet.
NULL
if none was specifiedXStylesheetHandler GetStylesheet();
Returns the XSLT stylesheet.
NULL
if none was specifiedvoid SetResultUri(const CString &strUri);
Sets the URI of the result document.
strUri
- the URI of the result documentvoid SetResultNode(const XNode &pNode);
Sets the XDM node to be used as the root of the result document.
pNode
- the XDM node to be used as the root
of the result documentvoid SetResultHandler(const Sax::XContentHandler &pHandler);
Sets the content handler to receive content of the result document.
pHandler
- the content handler to receive
content of the result documentCString GetResultUri();
Returns the URI of the result document.
XNode GetResultNode();
Returns the XDM node to be used as the root of the result document.
NULL
if none
was specifiedSax::XContentHandler GetResultHandler();
Returns the content handler to receive content of the result document.
NULL
if none was specifiedvoid SetOutputHandler(const XOutputHandler &pOutputHandler);
Sets the custom output handler.
pOutputHandler
- the custom output handlerXOutputHandler GetOutputHandler();
Returns the custom output handler.
NULL
if
none was specifiedvoid ResetParam();
Clears the list of values of the stylesheet external parameters.
void ResetParam(const CExternalParamList ¶mList);
Reinitializes the list of values of the stylesheet external parameters, copying the given parameter list.
paramList
- the parameter list to copyvoid AddParam(const CString &strQName, const XValue &pValue);
Adds the parameter value to the list of values of the stylesheet external parameters; the parameter is identified by its qualified name.
strQName
- the qualified name of the parameterpValue
- the value of the parametervoid AddParam( const CString &strNamespaceUri, const CString &strLocalName, const XValue &pValue);
Adds the parameter value to the list of values of the stylesheet external parameters; the parameter is identified by its namespace URI and local name.
strNamespaceUri
- the namespace URI of the parameterstrLocalName
- the local name of the parameterpValue
- the value of the parametervoid Reset();
Resets properties of this processor.
All properties related to the source document, the stylesheet and the result document become unspecified. The list of values of the external parameters becomes empty.
|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |