|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |
class CInputHandler: public CInterface { public: CInputHandler(); virtual ~CInputHandler(); public: virtual void CreateDocument( const XDocument &pDocument, const XLocationHandler &pLocationHandler, const XSpaceHandler &pSpaceHandler, const XDtdHandler &pDtdHandler) = 0; virtual void CreateDocument( const XDocument &pDocument, const CString &strUri, const XLocationHandler &pLocationHandler, const XSpaceHandler &pSpaceHandler, const XDtdHandler &pDtdHandler) = 0; virtual void CreateDocument( const XDocument &pDocument, const Sax::XXmlStream &pStream, const XLocationHandler &pLocationHandler, const XSpaceHandler &pSpaceHandler, const XDtdHandler &pDtdHandler) = 0; virtual XNodeSet GetFragment( const XDocument &pDocument, const CString &strUri) = 0; };
The abstract interface for creating documents from various sources.
At least one derived class must be supplied to provide
implementation of this interface. The default implementation is
provided via the
CBasicInputHandler
class.
CSpaceHandler, CLocationHandler, Sxp::IDtdHandler, Sax::CXmlStream
Constructor/Destructor Summary | |
CInputHandler
();
����������Constructs the input handler. |
|
~CInputHandler
();
����������Destroys the input handler. |
Function Summary | |
void
|
CreateDocument
(const XDocument &pDocument, const XLocationHandler &pLocationHandler, const XSpaceHandler &pSpaceHandler, const XDtdHandler &pDtdHandler);
����������Creates a document from an XDM source. |
void
|
CreateDocument
(const XDocument &pDocument, const CString &strUri, const XLocationHandler &pLocationHandler, const XSpaceHandler &pSpaceHandler, const XDtdHandler &pDtdHandler);
����������Creates a document from an URI. |
void
|
CreateDocument
(const XDocument &pDocument, const Sax::XXmlStream &pStream, const XLocationHandler &pLocationHandler, const XSpaceHandler &pSpaceHandler, const XDtdHandler &pDtdHandler);
����������Creates a document from an XML stream. |
XNodeSet
|
GetFragment
(const XDocument &pDocument, const CString &strUri);
����������Fetches the document fragment from the given document based on the given URI. |
Constructor/Destructor Detail |
CInputHandler();
Constructs the input handler.
virtual ~CInputHandler();
Destroys the input handler.
Function Detail |
virtual void CreateDocument( const XDocument &pDocument, const XLocationHandler &pLocationHandler, const XSpaceHandler &pSpaceHandler, const XDtdHandler &pDtdHandler) = 0;
Creates a document from an XDM source.
This function receives the XDM document (which must support XDM extensions) and modifies this document in place. Text nodes containing whitespace characters only are stripped as required by XSLT, using the space handler supplied as the function parameter. Adjacent text nodes are merged.
This is a deprecated function, not to be used in new applications.
pDocument
- the source XDM document,
will be modified in placepLocationHandler
- unused,
must be set to
NULL
pSpaceHandler
- the space handler to
control the whitespace stripping processpDtdHandler
- unused,
must be set to
NULL
virtual void CreateDocument( const XDocument &pDocument, const CString &strUri, const XLocationHandler &pLocationHandler, const XSpaceHandler &pSpaceHandler, const XDtdHandler &pDtdHandler) = 0;
Creates a document from an URI.
The empty document must be passed as a parameter to this function. On return, this document receives content obtained by parsing XML data located at the given URI. The whitespace is stripped as required by XSLT.
The DTD handler required as the parameter of this function is supplied by the XSLT engine. Tookit users are not required to provide a specific implementation of the DTD handler.
pDocument
- the document to be createdstrUri
- the source URIpLocationHandler
- the location handler
to register locations of document nodespSpaceHandler
- the space handler to
control the whitespace stripping processpDtdHandler
- the SXP DTD handler to
handle DTD-related information relevant for XSLT processingvirtual void CreateDocument( const XDocument &pDocument, const Sax::XXmlStream &pStream, const XLocationHandler &pLocationHandler, const XSpaceHandler &pSpaceHandler, const XDtdHandler &pDtdHandler) = 0;
Creates a document from an XML stream.
The empty document must be passed as a parameter to this function. On return, this document receives content obtained from the given XML stream. The whitespace is stripped as required by XSLT.
pDocument
- the document to be createdpStream
- the source XML streampLocationHandler
- the location handler
to register locations of document nodespSpaceHandler
- the space handler to
control the whitespace stripping processpDtdHandler
- unused;
must be set to
NULL
virtual XNodeSet GetFragment( const XDocument &pDocument, const CString &strUri) = 0;
Fetches the document fragment from the given document based on the given URI.
pDocument
- the source documentstrUri
- the document fragment URI (might contain
the fragment identifier)
|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |