[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Writing extension functions (& elements)
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|