Re: [xslt] How to use one Interface
- From: Daniel Veillard <veillard redhat com>
- To: xslt gnome org
- Subject: Re: [xslt] How to use one Interface
- Date: Thu, 18 Sep 2003 19:02:58 -0400
On Thu, Sep 18, 2003 at 08:03:05PM -0300, Marcio Napoli wrote:
> In my XSL i have:
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:lattes="http://www.cnpq.br/2001/XSL/Lattes">
> and
> ...select="lattes:getNROIDCNPQ()"/
>
> so, getNROIDCNPQ() is one function:
> function getNROIDCNPQ: WideString; stdcall;
>
> i used MSXML, so only is necessary to pass the interface, and already to
> process the parameters, but
> how it work in LibXml2 ?
>
> Example:
> objLMSXML.addObject(intLLattesObj, 'http://www.cnpq.br/2001/XSL/Lattes')
> -> where intLLattesObj implements my function getNROIDCNPQ()
see xsltRegisterExtFunction()
http://xmlsoft.org/XSLT/html/libxslt-extensions.html#xsltRegisterExtFunction
and other interfaces in that module.
Building extension functions is not really trivial, especially
in C, see some of the internal routines in libxslt/functions.c
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]