On 7/26/2011 1:18 AM, Hussein Shafie wrote: > On 07/26/2011 01:25 AM, Andy Black wrote: >> According to the set of changes given on >> http://www.xmlmind.com/xmleditor/changes.html, the selectById command is >> replaced by selectLink. >> >> We have been using selectById within a macro whereby the user chooses an >> item from a list (via the pick command) and we then invoke selectById to >> jump to the indicated item. >> ... >> >> How can we do something similar now that selectById has been replaced by >> selectLink? >> > > selectLink does everything selectById did in terms of link navigation. > In the above macro, you want to find and select an element having a > given ID, which is very different from link navigation. > > In order to do that, you can use: > > <set variable="selectedElement" expression="id('%_')" /> > > OR: > > <command name="xpathSearch" parameter="[implicitNode] id('%_')" /> > > (The later command not only selects the element and automatically > scrolls the view to show it, but it will also automatically expand > collapsed sections if needed to.) >
Thank you, Hussein. The latter is exactly what I was looking for. --Andy -- XMLmind XML Editor Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xmleditor-support

