Dave,
Instead of referencing the cFilter JavaScript var in the filter expression, how about building up the filter expression with concatenation, inserting the value of cFilter into the string between quotes? (I don't know if it has to be single or double quotes around the value, so you might have to do some fancy footwork.
IOW, does this work?
filterBy.value = "VFPData/dbservers[contains( servname, 'PROD')]";
If so, maybe the problem is that the JavaScript var is out of scope and can't be seen in the XSL transform.... Just thinking out loud...
>
>It's a parameter (a string) sent to the javascript function.
>
>
>function FilterData( cFilter )
>{
>filterBy.value = 'VFPData/dbservers[contains( servname, $cFilter )]';
>PopulateDocument();
>}
>
>
>it's called from inside the page:
>
>$cFilter throws the same error.
>
>
><a href="javascript:FilterData('prod')">filter</a>
>
>
>>
VFPData/dbservers[contains( servname, cFilter )]
>>
>>Is cFilter an xsl Variable or Param ? If so should be: $cFilter