Hi,
i have something like this below
<xsl:variable name="withname">
<xsl:copy-of
select="tblMIMCompanies[contains(translate(@name,$upperCase,$l
owerCase),tran
slate($name,$upperCase,$lowerCase))'true']"/>
</xsl:variable>
I.e. you're binding $withname to a Result Tree Fragment
<xsl:variable name="numnam" select="count($withname)"/>
but count() expects a node-set.
but the last line is returning me an error than $withname
does not return a
nodelist, any ideas what im doing incorrect?
You're trying to use a function with an argument of a wrong type. Change the
definition of $withname to
<xsl:variable name="withname"
select="tblMIMCompanies[contains(translate(@name,$upperCase,$lowerCase),translate($name,$upperCase,$lowerCase))'true']"/>
Cheers,
Jarno - Madam Zu: August 2003 Part 1