Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: xsl:script xsl:scriptTo: NULL Date: 9/9/2008 10:20:00 AM
refering
http://www.w3.org/TR/xslt11/#define-extension-functions
is xsl:script obsolete?
can it be used for extention functions in xslt.
something like this
<xsl:stylesheet version="1.1"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:Fun="http://mycompany.com/mynamespace">
<xsl:script implements-prefix="Fun" language="javascript"
src="MyFunctions.js" />
or
<xsl:script implements-prefix="Fun" language="javascript">
<![CDATA[
function Function1(){ return "RETURN";}
]]>
</xsl:script>
<xsl:template match="/">
<html>
<body>
abc=<xsl:value-of select="Fun:Function1()"/>
thanks in advance,
praveen
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
