Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Nul nodelist passed to Jscript [Thread Next] Re: Nul nodelist passed to JscriptTo: NULL Date: 10/1/2004 11:16:00 AM Hi,
Check the .length property to ensure there are nodes in the node-list prior
to trying to access an item.
Cheers
Marrow
"Patrick Buxton" <patrick.buxton@d...> wrote in message
news:415cf930$0$8476$cc9e4d1f@n......
> When I use <xsl:value-of select="user:myFunction(.)"/> to call a Jscript
> function like:
>
> myFunction(nodeList) {
> var node = nodeList.Item(0);
> return "";
> }
> I get an error on the line "var node = nodeList.Item(0);"
>
> I can write return nodeList.Text which is blank.
>
> Am I doing something fundamentally wrong here???
>
> Thanks
>
>
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
