Nico wrote: > On Mon, 29 Nov 2004 09:50:15 +0100, Hussein Shafie <hussein at pixware.fr> > wrote: > >> Jan Bares wrote: >> >>> this should be simple but I don't know how I can do it. I have this >>> sample >>> document: [...] >>> Now I want to insert new section between para1 and para2. There are >>> two ways >>> how to insert the section. The new section can be inside the outer >>> section1 >>> (as subsection) or the new section can follow after section1. I >>> cannot do >>> any of the two simple operation without using multiple steps. Can >>> you help >>> me? >> >> >> You can automate almost anything you can do using multiple steps by >> writing a macro-command. See >> http://www.xmlmind.com/xmleditor/_distrib/docs/commands/ch02.html > > > Before trying to code such a macro, I would like to know if someone > else already coded this. > > I take the opportunity of this thread to say that this missing > "feature" is really a problem for users that know almost nothing about > DocBook nor XML, and who are stuck to a behaviour a la word (in which > you can insert sections everywhere). > > Don't you think that this extension should be available by default? >
Yes, if we are talking about the same problem. I think that it would be useful to wrap one or more blocks (para, itemizedlist, etc) optionnally followed by one or more sections into a parent section. If we are talking about the same problem, just tell me and I'm ready to write such macro right now (may be I'll have to write it as a generic, native, command) and then to add it to the DocBook menu. Now this being said, even after adding such macro, your na?ve users will not understand why they cannot turn "<para>Paragraph #2.</para><para>Paragraph #3.</para>" to a sub-section of section "example": --- <section id="example"> <para>Paragraph #1.</para> <para>Paragraph #2.</para> <para>Paragraph #3.</para> <para>Paragraph #4.</para> </section> ---

