Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Cannot access NodeList in JScript Cannot access NodeList in JScriptTo: NULL Date: 10/1/2004 1:21:00 AM I'm attempting to convert some old xsl documents so I can use the XSLTransform object in .NET and have been replacing the old xsl:eval tag with xsl:value-of. I can't seem to access the mode passed though if I use "." or current(). The old xsl:eval used to pass "this". Can anyone help please?? This is a very cut down version that (probably - I just wrote it now quickly so excuse spelling mistakes) mimics the problem: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:user="my-functions"> <xsl:template match="/"> <xsl:apply-templates match="/Test"> </xsl:template> <xsl:template match="/Test"> <xsl:value-of select="myFunction(.)"/> </xsl:template> <msxsl:script language="JScript" implements-prefix="user"><![CDATA[ function myFunction(nodeList){ var node = nodeList.item(0); return ""; } ]]></msxsl:script> </xsl:stylesheet> thanks for any help | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
