In the meantime, you might find these two macros useful:
markPosition inserts a processing instruction called "placemarker" at
the cursor position.
findMarkedPosition finds it again (you have to expicitly delete it when
you are finished with it).
<command name="markPosition">
<macro>
<sequence>
<choice>
<sequence>
<command name="insertNode" parameter="piInto placemarker" />
</sequence>
<sequence>
<command name="insertNode" parameter="piBefore placemarker" />
</sequence>
</choice>
<command name="insertString" parameter="PlaceMarker" />
</sequence>
</macro>
</command>
<command name="findMarkedPosition">
<macro>
<sequence>
<set expression="//processing-instruction('placemarker')"
variable="selectedNode"/>
</sequence>
</macro>
</command>
Regards,
Kevin Flynn
Escenic AS
Oslo, Norway
Hussein Shafie wrote:
> Andy Black wrote:
>> I vaguely remember reading something on this list about an ability to
>> set "bookmarks" in XXE, but have not been able to find it. So please
>> forgive me if this has been discussed before.
>>
>> What I'm after is a way to tag a location in a file, go to another
>> location, and then pop back to the first location. The application
>> is creating an index for a document. The collection of index terms is
>> at the end of the file. I then go through the document, inserting
>> references to an index term as appropriate. As I go through the
>> document, I find places where I need to add one or more index terms.
>> It would be nice to remember where I am, jump down to the index terms
>> section, add the new term(s), and then immediately pop back to where
>> I was.
>>
>> Is there any current way to do this?
>>
>
> I'm sorry but the answer is no.
>
> I'll add this RFE to our User's Wish List
> (http://www.xmlmind.com/xmleditor/wish_list.html).
>
>
>
>
>
>
> --
> XMLmind XML Editor Support List
> xmleditor-support at xmlmind.com
> http://www.xmlmind.com/mailman/listinfo/xmleditor-support