Many thanks Hussein for your perfectly working examples!
Of course you know one answer raises three more questions :)))
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).
Cheers,
stephan
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************