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.
Copyright © 2006 O'Reilly Verlag GmbH & Co. KG
You may print the online version for your private use.
Otherwise, this chapter from "XSLT Kochbuch" is subject to the same terms as the printed edition: the work and all its parts are protected by copyright. All rights are reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
O'Reilly Verlag GmbH & Co. KG, Balthasarstraße 81, 50670 Köln, kommentar(at)oreilly.de