On Wed Nov 26 10:54:49 2025 +0000, Jacek Caban wrote:
t looks a bit suspicious. In cases like this, the usual behavior would be to create one engine per script language and share it between all scripts in the same context (and using the same language). Creating a script engine is expensive, and you generally want scripts in the same context to be able to call each other freely and access each other’s properties. (In more complex hosts, like MSHTML, we also need to allow cross-language access between scripts written in different languages, but that’s probably not a concern here.)
They are all in separate contexts, script can't call functions from another msxsl:script block. You can have two functions of the same name in separate blocks, and use one or another in xslt using specific namespace, as ns:func1 or ns2:func1.