Per Thomsen wrote:
> But when I want to add a refsection inside a top-level refsection, I
> can't do it in XXE. If I hand-edit a refsection in there, there is no
> problem, and I can add more 'sub-refsections' at the same level, but
> again, I can't add another 'sub-sub-refsection'.
>
> To be clear, when I say that I can't do it in XXE, I mean that if I
> click on the 'insert after' (or 'insert before' or 'convert') button in
> the edit tab on the right of the screen, the resulting list doesn't give
> me the option of 'refsection' anywhere inside a top-level refsection. If
> I select the entire refsection, I am only able to add another top-level
> refsection.
>
> Maybe I'm missing something obvious, and I just don't know how to get
> XXE to do what I want.
Yes. Have you taken the time to read the tutorial? If there is *one*
*thing* to remember, it is:
[1] Select an element or a text node by clicking on it in the node path bar.
[2] Use "Insert After" (and *not* "Insert").
If you don't find the element you want to insert in the list. It is
because the schema forbids you to do so in the current context. (XXE
knows that better than you and me.)
In the case of refsection. Select a refsection and press Shift-F1. The
dialog box shows that the content model of a refsection which is:
---
(refsectioninfo? ,
title ,
subtitle? ,
titleabbrev? ,
(((calloutlist | glosslist | bibliolist | itemizedlist | orderedlist |
segmentedlist | simplelist | variablelist | caution | important |
note | tip | warning | literallayout | programlisting |
programlistingco | screen | screenco | screenshot | synopsis |
cmdsynopsis | funcsynopsis | classsynopsis |
fieldsynopsis | constructorsynopsis |
destructorsynopsis | methodsynopsis | formalpara | para | simpara |
address | blockquote | graphic | graphicco | mediaobject |
mediaobjectco | informalequation | informalexample |
informalfigure | informaltable |
equation | example | figure | table | msgset |
procedure | sidebar | qandaset | task | anchor |
bridgehead | remark | highlights | abstract | authorblurb |
epigraph | indexterm | beginpage)+ ,
refsection*) |
refsection+))
---
This means:
* If a refsection starts with a title and one or more ``paragraphs'',
you can add a sub-refsection after the *last* ``paragraph''.
* Otherwise a refsection just contains a title and one or more
sub-refsections.
> For now, it's OK for me to be adding the second-level refsections by
> hand, but if there is an easier way to do this, I'd obviously love to know.
>
Select explicitly or implicitly the *last* *child* *element* of a
refsection. Then use "Insert After". You'll find "refsection" listed,
select this item.
See attached screenshot. I just clicked in "para" and used "Insert
After" to created nested refsections.
---
PS: If you have a red icon at the bottom left of the main window, your
document is invalid (the consequence of hand editing). In such case,
please fix it first before proceeding.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sub-refsection.png
Type: image/png
Size: 37951 bytes
Desc: not available
Url :
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20060406/b32a43ad/attachment.png