Re: First xmroff php extension test

Tony Graham <[email protected]> Tue, 21 Feb 2006 09:49:59 +0000
Newsgroups gmane.text.xml.xmlroff.general
Message-ID <[email protected]>
"Mauro C." <[email protected]> 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.



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642