It seems to be the case that you cannot use local namespace variables in xpathSearch expressions. In other words:
<cfg:get expression="$view:searchString"/> <cfg:command name="xpathSearch" parameter="following::*[contains(@id,'%_')][1]" /> works, but <cfg:command name="xpathSearch" parameter="following::*[contains(@id, $view:searchString)][1]" /> doesn't. It took me a while to find out that this was the cause of my problems, so it's probably worth documenting. Incidentally, the reason I am using xpathSearch here rather doing this: <cfg:set variable="selectedElement" context="$selectedElement" expression=" following::*[contains(@id, $view:searchString)][1]"/> is that xpathSearch forces collapsed elements to be expanded. Is there any other way to do this programmatically? If not, can I add it to the wish list? Regards Kevin Flynn Birdstep Technology ASA Oslo, Norway

