Marsoner Stephan wrote: > We use rather large documents and therefore work much with collapsed > views. Now with the help of your macros ist easy navigating this > documents, but if the target-element is (deep) down in some collapsed > views I've to first move to the first (possibly) collapsed element, > expandAll, then move to the target: > > <cfg:set variable="target" context="$implicitElement" > > expression="following::*[local-name(.)=local-name(current())][1]"/> > <cfg:set variable="selected" > expression="$target/ancestor::ln:section[last()]"/> > <cfg:command name="toggleCollapsed" parameter="expandAll"/> > <cfg:set variable="selected" expression="$target"/> > <cfg:command name="center" /> > <cfg:set variable="dot" context="$selected" expression=".//text()[1]" /> > > Is there an easier way? > I noticed that the command "selectById" does this somehow implicitly > (but works of course only for elements with id). >
This looks fine to me.

