Re: [xsl] Writing extension functions (& elements)

Subject: Re: [xsl] Writing extension functions (& elements)
From: Alexey Gokhberg <alexei@xxxxxxxxxx>
Date: Wed, 31 Jan 2001 14:08:19 +0100
Jeni Tennison wrote:
> 
> Eugene's absolutely right, of course, although I can't see any way in
> Unicorn XSLT to include Javascript *in the stylesheet itself* - I
> think you have to import a script using obj:import (obj being bound to
> http://www.unicorn-enterprises.com/XSLT/Extensions/ECMAScript/1.0) and
> then can call a function in that script either with function syntax like
> obj:call(object, function, arguments*) or with element syntax.  I'd be
> pleased to be corrected - this is just what I've gathered from a quick
> read of the documentation.
> 

You are right.

In Unicorn XSLT, scripts implementing extensions cannot be embedded into
stylesheets. 

Our specification enforces separation of code implementing extension
objects, from XSLT stylesheets using properties and methods of these
objects.

Kind regards,

Alexey Gokhberg
Unicorn XML Toolkit
http://www.unicorn-enterprises.com/#products_xmlkit

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread