Re: [xslt] get transform context from extension function ?
- From: Thomas Broyer <tbroyer ltgt net>
- To: xslt gnome org
- Subject: Re: [xslt] get transform context from extension function ?
- Date: Thu, 26 Jul 2001 19:32:14 +0200
Le 26/07/01 19:12:34, Tom Moog a écrit :
> I am writing an extension function which creates an
> external object (xmlXPathObjectType = XPATH_USERS).
> The actual data is pointed to by the void * user data
> in xmlXpathObject. This user field is filled in by a
> call to xmlXPathReturnExternal.
External objects are not tested at all, the API may change if (really)
needed.
> It appears that when an external object is deallocated
> the xmlXPathObject is simply deallocated and the user
> field is ignored. So, I thought I'd keep a list of
> all the external objects which have been allocated in
> the transform context. Then, when the transform context
> is deallocated I could run through this list of external
> objects and deallocate them.
This is the Good Way, at least for the moment.
> My problem: when the extension function is called it
> receives a pointer to the xmlXPathParserContext, and
> I'm not sure how to find the current transform context.
With xsltXPathGetTransformContext, from extensions.h
Tom.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]