Re: [xml] Question XML output callback
- From: Daniel Veillard <veillard redhat com>
- To: Asorokin <aasorokin ncbi nlm nih gov>
- Cc: xml gnome org
- Subject: Re: [xml] Question XML output callback
- Date: Fri, 3 May 2002 16:13:19 -0400
On Fri, May 03, 2002 at 03:52:04PM -0400, Asorokin wrote:
Hi,
Is it possible to pass my own parameters into xml output callback without
having them declared as globals or static? For example my XSLT script
generate multiple output files and it will be greate to store them in
databse inside some xmlOutputCloseCallback. In this case I have to pass DB
session handler into this callback.
The function doing the open is of the following type:
typedef void * (*xmlOutputOpenCallback) (char const *filename);
It's a function provided by the user code (or the default handlers
from libxml2. The returned value is passed to all subsequent
xmlOutputWriteCallback and xmlOutputCloseCallback,
so it seems the answer is yes.
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]