Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - xsl:script [Thread Next] Re: xsl:scriptTo: NULL Date: 9/9/2008 8:02:00 AM
"Praveen" <praveen@n...> wrote in message
news:un4nlejEJHA.3996@T......
> 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
XSLT 1.1 never happened, it morphed into as version 2.0.
You can use something msxsl:script in MSXML and similarly in XML.NET.
I don't believe it supports included files, the script needs to be embedded
in the XSLT:
http://msdn.microsoft.com/en-us/library/ms256042.aspx
--
Joe Fawcett (MVP - XML)
http://joe.fawcett.name
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
