You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Marco van Eck <ma...@wildape.com> on 2000/08/08 17:58:09 UTC

Putting Xalan in C++ class

Hello

I want to place Xalan in this class structure

--
class xalanFormatter
{
  private:
	XalanNode      *xalanTree;
	XSLTEngineImpl *theProcessor; 
/* And some other class pointers */
  public:
/* initialize the processor */
	xalanFormatter();
/* Delete all the used pointers */
	~xalanFormatter( );
/* Read an xsl file and compile it */
	bool readXSLT( char *filename );
/* Convert the Dom-node to the xalantree */
	bool transform( DOM_Node& tree );
/* process the tree */
	bool output();
}
--

When I want to run theProcessor->process(...) I get the message "pure
virtual method called" 
Is it possible to implement such a class? Or must I cast it to
something?

I want this class so I can make a small and structured progamm. I want
to read once a xsl file, compile it, and run it a lot of times on
different dynamic generated DOM_Nodes. 


--------------------------------------------------
Be aware of the wildape
       It must be somewhere
--------------------------------------------------