RE: Congrats on the latest WD ::: http://www.w3.org/TR/2001/WD-xs lt20 -20011220/

> What I imagined was that xsl:script would have a language attribute
> that takes a qualified name that indicates the language binding for
> the relevant implementation. Taking the example you gave, I'd like it
> to be:
> 
> <xsl:script namespace="some" language="saxon:java"
>             class="my.extension.class.SaxonWrapper" />
>             
> <xsl:script namespace="some" language="xalan:java"
>             class="my.extension.class.XalanWrapper" />
> 
> <xsl:script namespace="some" language="msxsl:jscript">
>   function extension {
>     do it!
>   }
> </xsl:script>
> 
But if we don't define the language bindings, then how can we say anything
useful in the spec about the semantics of the "class" attribute?

We did try this approach, taking out the language bindings but leaving
<xsl:script> in. But it makes too many assumptions about the way in which
language bindings are likely to work in different implementations.

If two implementations do agree on a binding mechanism, then they can also
agree on a <common:script> element to define the binding, or one processor
can emulate the binding mechanism defined by a different processor (there's
nothing to stop a non-Microsoft processor implementing <msxsl:script> as
defined by Microsoft).

Mike Kay

Received on Friday, 18 January 2002 07:42:06 UTC