Damien Fitzpatrick wrote:
> 
> Even when I have only the <section> selected (so that the navigation bar
> between the document window and the toolbar shows "book+chapter+section")
> and it is with this selection that I am attempting to insert a nested
> section *not* inside a <para>.  Am I not allowed to insert a section due to
> the fact that XXE is working with the caret position and not with my
> selection as shown below the toolbar when validating what elements I can
> insert?

If the node path bar shows "book+chapter+section", use "Insert After" to
insert a section after the selected one.

If, like you said, you want to insert a *nested* section inside a parent
section, move your caret inside *last* child of the parent selection.

Let's say this last child is a para, the node path bar must display
"book+chapter+section+para+#text", then use "Insert After" to insert a
nested section after the para.

What is important here is to select last child of parent section to be
able to insert a nested section after this last child. If, for example,
last child of parent section is a table, moving the caret in an entry
will not work. You'll have to select the whole table (i.e. node path bar
must display "book+chapter+section+table").

---
PS: There is half a dozen way to achieve the same thing, but for
clarity, I'm just describing the most basic one.

---
PS 2: If a node is displayed with a thin red line around it, XXE works
with this node wherever is the caret. This node is called the
``explicitly selected node''.

If there is no explicitely selected node (no red box), XXE ``works with
the caret'', that is, XXE considers that the *element* containing the
caret is implicitly selected.

This way of doing things is very convenient once you get used to it.

All this is detailed in the tutorial. See
http://www.xmlmind.com/xmleditor/tutorial.html .

---
PS 3: It is XXE V2.0 *Patch 2*, not SP2. We have not yet been bought by
Microsoft :-)

Reply via email to