From: Tony G. <Ton...@Su...> - 2006-02-21 09:50:58
|
"Mauro C." <inc...@ya...> writes: ... > I have copied some .h manually: In theory, all the .h files that you need to use libfo should be installed when you run 'make install'. If some are missing, please let me know. > some in root of xmlroff source... still study xmlroff > :) > > my intent is to provide php API like this: > > trasformFile(...); > trasformMem(...); > trasformDom(...); // XmlDocPtr > > i've notice that fo_xsl_trasformer accept only > stylesheet filename. > > why not have interface to set xmldoc from a string or > xmldocptr? No-one has asked for it. There's currently no mention of xmlDocPtr or other libxml2 or libxslt constructs in the most of the libfo headers in an attempt to keep the dependencies simple. fo-xml-doc-private.h does have fo_xml_doc_get_xml_doc() and fo_xml_doc_set_xml_doc() so you can create a libxml2 xmlDoc any way that you want and then use fo_xml_doc_set_xml_doc(), but I can see that that doesn't really satisfy your request. I have tried to avoid references to libxml2, etc., in the public header files so you can just use libfo without knowing about libxml2's xmlDoc. That still seems to me to be worthwhile, but so does creating an FoXmlDoc from a xmlDocPtr. Is fo-xml-doc-private.h sufficient, or is something else required? Regards, Tony. |