Do you mean the extension functions/elements as in the specification? We
do plan to support these, it's a must; the plan is to let the user set
up a callback to receive calls to extension functions in a particular
namespace. Now these functions will probably need full DOM-like access
to the XML trees; for this, they will have a new C API (seems better
than direct access to the "real" object representation). I'm not sure
about how to deal with the different types yet.

Tom

David Hedbor wrote:
> 
> Is there / will there be possibilities of adding custom functions or
> elements) to Sablotron? Ie from a HTTP point of view
> something like this might be nice:
> 
>         <xsl:value-of select="http:cookie(cookiename)"/>
>         <xsl:value-of select="$http:protocol"/>
>         etc.
> 
> Perhaps some kind of scope-callback which gets called like this, or
> what not:
> 
> DATAVAL scope_callback(void *userData, SablotHandle sproc,
>         const char *scope, const char *name, TYPEVAL type,
>         DATAVAL data)
> 
> scope and name are obvious, TYPEVAL specifies what type is is (enum,
> or simply and int), data is the contents / attributes. I'm not quite
> sure how this would be handled. Might have to have different callbacks
> for different types.
> 
> Anyway, you get the idea - any plans/comments etc?
> 
> - David.
> 
> --
> [ Below is a random fortune, which is unrelated to the above message. ]
> The herd instinct among economists makes sheep look like independent thinkers.



Reply via email to