XML technologies / XSLT / XSLT Kochbuch / Extending and embedding XSLT / MSXML extension functions

(Excerpt from "XSLT Kochbuch" by Sal Mangano)

XSLT 1.0

The XSLT processor in Microsoft MSXML 3.0, 4.0 and .NET can be extended using Jscript and VBScript. MSXML .NET adds C# as another extension option. In MSXML, extensions are specified using the ms:script element:

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:myExt="urn:AcmeX.com:xslt">
  <ms:script language="JScript" implements-prefix="myExt">
    <![CDATA[
       function superExtension(ops) {
           /* ... */
           return result;
       }
    ]]>
  </ms:script>
</xsl:stylesheet>

XSLT 2.0

At present, Microsoft has no plans to implement XSLT 2.0 on the .NET platform and is limiting itself to supporting XQuery. However, there are efforts to port Saxon to C# .NET (see Saxon.NET).

See also

The XSLT C library for Gnome (libxslt) also supports extensions.

  

 

 

 

back to top