Ralf Hildebrandt wrote: > Is there any way of hierarchically "raising" a structure one level, > e.g. making a > > <sect2><sect3><sect4>Text</sect4></sect3></sect2> > into > <sect1><sect2><sect3>Text</sect3></sect2></sect1> > ? I really need that quite often, since I want to change a subsection > into a section, without having to cut & paste all it's contents. > > Right now (under Linux) I have to do this manually, by using jed or > vi. This works, but after saving I have lots of additional blank lines > displayed in the XML editor. Also, the contents of <screen> are > totally destroyed after such an operation, all the newlines are missing. >
Maybee you could consider using section instead of sectn, because : http://norman.walsh.name/2004/01/01/absinthe : " ... DocBook NG has recursive section and refsection elements, but it no longer has sectn or refsectn elements. ... " Or you can use XSLT ... ? But it is not sure that you will get a special function from XXE since sectn should no longer exist.

