The xsl contains function uses string values... but how can the value of the searchedforstring be assigned dynamically? It should be possible to assign the value of a text entry field in an html form to a variable and use this as the value of the searched for string in the xsl document.
The following script snippet gets the value of the text entered and assigns it to the global variable strName*. The problem is to use the value of strName in place of the searched for string.
<script language="text/javascript">
var strName;
function nameDetails()
{var strName = getElementById("txtField1").value;}
</script>