There's no way to extend the C API to allow for extension functions, since
they rely on classes. You cannot use classes in C, so it's impossible.
There should be no problem writing an Apache module in C++, so you can just
use the XalanTransformer class.
The Xalan extensions we ship with the product are already installed if you
use the C API or the XalanTransformer class.
Dave
Nouguier Olivier
<olivier.nouguier@ To: [EMAIL PROTECTED]
wanadoo.fr> cc: (bcc: David N
Bertoni/Cambridge/IBM)
Subject: Re: InstallExternalFunction
in XalanCAPI
03/13/2002 09:45
AM
Please respond to
xalan-dev
Okai, sorry if my question was stupid ... but I am using XalanCAPI to
write an ApacheXSLTModule of my own and I like to install external
function of Xalan extension librairies ( external:FunctionDistinct() ),
or in the future ( in I find a new idea you don't already implement )
build my own extension.
So did I miss something, I'm not an expert in relation between c and
c++, but what do you think is the best:
- extend the xalanCAPI
- use c++ and XalanTransformer to write my module with something
like : http://wolfgang.groogroo.com/apache-cplusplus/
- another solution?
If you find my question really out of Xalan topic, I apologize.
Still many thanks.
Olivier
le mer 06-03-2002 � 00:51, David N Bertoni/Cambridge/IBM a �crit :
>
> The reason there's no way to install an external function in the C API is
> that we assume you're using the C language. Thus, there would be no way
> for you to write an extension function, since that requires using C++.
If
> you look at the APIs, you will see that there is no use of classes, or
any
> other C++ language features.
>
> If you're using C++, you might want to just use the XalanTransformer
class.
> That's a bit more efficient than the C API, and much more flexible.
>
> Dave
>
>