Re: [xslt] hook a callback into the transformation process



On Tue, Oct 07, 2003 at 03:55:51PM +0200, Kasimier Buchcik wrote:
> Hi,
> 
> I hope someone has a suggestion for the following problem:
> consider libxslt has to perform a time intensive transformation, during 
> which a database connection might get lost; is it possible to hook into 
> the transformation process (via a callback) to be able to periodically 
> check the database connection and abort the transformation if needed?
> I know that we could use two threads, one to observe the db-connection 
> the other to run the transformation, but I'm interested in a solution 
> with less overhead. When would it be wise to fire such a callback (e.g. 
> every called template, every for-each, ect.) ?
> Any hints?

  You can try to use the debugger callback see xsltSetDebuggerCallbacks()
in xsltutils.[ch]

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard@redhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]