Re: [xslt] get transform context from extension function ?
- From: Daniel Veillard <veillard redhat com>
- To: xslt gnome org
- Subject: Re: [xslt] get transform context from extension function ?
- Date: Thu, 26 Jul 2001 13:27:43 -0400
On Thu, Jul 26, 2001 at 12:12:34PM -0500, Tom Moog wrote:
>
> I am using libxslt 1.0.1
>
> 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.
Hum, you're the first one who tries to use this, if you have
troubles with the XPath engine, no surprize, report them.
> I have already made a minor change to xsltApplyStyleSheetInternal
> so that I can get access to the transform context for
> another part of my application, but I'm trying to keep
> down the number of such changes to the distribution.
Hum, you didn't sent this patch
> 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.
> >From xmlXPathParserContext I can get an xmlXPathContext.
> >From xmlXPathContext I can get a pointer to a node or
> a document. From there, I suppose I could find the
> transform context.
Hehe this part is documented ...
http://xmlsoft.org/XSLT/extensions.html#Implementi
xsltXPathGetTransformContext()
Daniel
--
Daniel Veillard | Red Hat Network http://redhat.com/products/network/
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]