2.4.6 Cursor Position Setting
A common view setting for editing applications is the
position where the text cursor was while saving the document. For WYSIWYG
applications, this usually will be a position within a paragraph only. For
applications that provide an XML based view of the document, the cursor
position could be also between arbitrary elements, or even within tags.
To represent a text cursor position within a document, a
processing instruction with PITarget opendocument (see �2.6 of [XML1.0]) should be used. The name of the cursor position
processing instruction, cursor-position, shall follow the PITarget
opendocument. The processing instruction may have
arbitrary application specific attributes, for instance to connect the cursor
position with a certain view of the document, where the views themselves are
specified as application specific settings. The syntax for these attributes shall be the same as for attributes within XML
start tags.
Where a text cursor position is not sufficient to recreate a
document view, applications may use arbitrary document specific settings in
addition to the cursor position processing instruction. They may also use
arbitrary document specific settings if the cursor position is not a text
cursor position, but for instance a selection of drawing objects.
Example: cursor position processing
instruction
<text:p>This is<?opendocument cursor-position
view-id="view1"?> an example.</text:p>