Urs F. wrote:
I would like to use DocBook 5 (5.1) for my work.
The Problem is: I did not find a proper, elegant way to deal with
interview-texts. I am doing science, but there I need to be able to
write texts with dialogs.
It would be perfect, to be able to use a structure like the following:

Example 2.2. Example Dialogue

The following provides an example usage of the newly added elements:

   1<dialogue>
   2<linegroup>
         <speaker>President John F.
   4       Kennedy</speaker>
         <line>And so, my fellow Americans, ask
   6       not what your country can do for you; ask what you can
           do for your country.</line>
   8<line>My fellow citizens of the world,
           ask not what America will do for you, but what together
  10       we can do for the freedom of man.</line>
         <line>Finally, whether you are citizens
  12       of America or citizens of the world, ask of us here the
           same high standards of strength and sacrifice which we
  14       ask of you. With a good conscience our only sure reward,
           with history the final judge of our deeds, let us go
  16       forth to lead the land we love, asking His blessing and
           His help, but knowing that here on earth God's work must
  18       truly be our own.</line>
       </linegroup>
  20</dialogue>

Anyway, I wish you a lot of success, since your software is so well done
and the idea to develop a XML Editor for DocBook for the rest of us is a
reason to rethink the process of writing and using writing tools on the
computer.

Many thanks for the compliments.

Personally, I would do it this way, but if and only if the only element which interests you in "DocBook Publishers" is the above <dialogue> element.

1) Extend the DocBook 5 RELAX NG Schema by adding the above <dialogue> element. The DocBook 5 RELAX NG Schema has been designed to be easily extensible.

How to do this is explained here:

DocBook 5: The Definitive Guide, 5. Customizing DocBook

http://www.docbook.org/tdg5/en/html/ch05.html

2) Customize the stock DocBook 5 configuration for XMLmind XML Editor by:

a) extending the stock CSS stylesheet for styling <dialogue>.
b) extending the stock XSLT stylesheets for rendering <dialogue>.

How to do this is explained here:

XMLmind XML Editor - Configuration and Deployment, 5. Customizing an existing configuration

http://www.xmlmind.com/xmleditor/_distrib/doc/configure/customizing.html

Note that porting your customization to DocBook 5.1 in the future should not be a problem. Should take 5 minutes, with nearly no change to your customization.

--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to