hello

Bruno Sadiez <[email protected]> Tue, 5 Apr 2005 19:26:11 +0200 (CEST)
Newsgroups gmane.text.xml.xmlroff.general
Message-ID <[email protected]>
I'm currently working  on a project for a
philanthropic organization. I need to write an
invoicing application in C. I am not a professional
developer. 
What I need to do is fetch data from a database and
issue PDF invoices.
I'm using Daniel Veillard's Libxml2 library and I can
issue XML data files with all the required billing
details. I have written an XSL file with formating
objects. 
As this project is supposed to issue many thousand
invoices at the end of each month, performance is a
concern. I would like to be able to
		Load my XSLFO file only once
		Apply it to many thousand dynamically created XML
data trees.


		my code goes:

		xmlDocPtr invoice_doc = NULL;
		(..... )

		invoice_doc = xmlNewDoc(BAD_CAST "1.0");
 		invoice_root_node = xmlNewNode(NULL, BAD_CAST
"invoice");
 		xmlDocSetRootElement(invoice_doc,
invoice_root_node);

then I populate the tree with the required billing
details.

How is it possible to dynamically transform that
memory tree into a PDF. I would like to avoid writing
xml data files to disk.

I hope I'm being clear.

Thanks in advance


	

	
		
__________________________________________________________________
Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails ! 
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click