R
Richard Shea
Hi - First of all I hope I'm in the right place for some DocBook (XML)
help.
I'm looking for help in creating a heirarchical numbering of "things"
- I say "things" because I'm not quite sure what DocBook element I
should be using. If it were not for the numbering I would definetly
say sections as they seem the most natural sub-division of my
"article" - however I'm open to suggestions.
What I want to produce should look something like this ...
Title of my section numbering example
This is an introductory paragraph.
1. Vegetables
some text about vegetables ...
1.1 Spring Vegetables
some text about spring vegetables adsfas ...
1.1.1 European Spring Vegetables
some text about European Spring Vegetables adsfas ...
1.1.2 North American Spring Vegetables
some text about item 1/2 adsfas ...
1.2 Winter Vegetables
some text about Winter Vegetables ...
2. Fruit
2.1 Bush Fruits
some text about bush fruits
2.2 Tree Fruits
some text Tree Fruits ..
.... what I have tried is shown below. Although I have used
OrderedLists I am not committed to doing it that way - I would prefer
just to tell the sections to number themselves but I can't figure out
how to. Any help would be appreciated.
Example starts below :
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="file://localhost/D:/bin/installed/XMLMorphonEditor/Examples/docbook/docbook.css"
type="text/css"?>
<!DOCTYPE article SYSTEM
"file://localhost/D:/bin/installed/XMLMorphonEditor/Examples/docbook/dtd/docbookx.dtd">
<article>
<abstract>
<para></para>
</abstract>
<section>
<title>Title of my section numbering example</title>
<para>This is an introductory paragraph.</para>
<orderedlist continuation="continues" inheritnum="inherit"
numeration="arabic">
<listitem>
<para>Vegetables<orderedlist continuation="continues"
inheritnum="inherit" numeration="arabic">
<listitem>
<para>Spring Vegetables<orderedlist
continuation="continues" inheritnum="inherit" numeration="arabic">
<listitem>
<para>European Spring Vegetables</para>
</listitem>
<listitem>
<para>North American Spring Vegetables</para>
</listitem>
</orderedlist></para>
</listitem>
<listitem>
<para>Winter Vegetables</para>
</listitem>
<listitem>
<para>Fruit<orderedlist continuation="continues"
inheritnum="inherit" numeration="arabic">
<listitem>
<para>Bush Fruits</para>
</listitem>
<listitem>
<para>Spring Fruits</para>
</listitem>
</orderedlist></para>
</listitem>
</orderedlist>Vegetables</para>
</listitem>
<listitem>
<para>Fruit<orderedlist continuation="continues"
inheritnum="inherit" numeration="arabic">
<listitem>
<para>Bush Fruits</para>
</listitem>
<listitem>
<para>Spring Fruits</para>
</listitem>
</orderedlist></para>
</listitem>
</orderedlist>
</section>
</article>
help.
I'm looking for help in creating a heirarchical numbering of "things"
- I say "things" because I'm not quite sure what DocBook element I
should be using. If it were not for the numbering I would definetly
say sections as they seem the most natural sub-division of my
"article" - however I'm open to suggestions.
What I want to produce should look something like this ...
Title of my section numbering example
This is an introductory paragraph.
1. Vegetables
some text about vegetables ...
1.1 Spring Vegetables
some text about spring vegetables adsfas ...
1.1.1 European Spring Vegetables
some text about European Spring Vegetables adsfas ...
1.1.2 North American Spring Vegetables
some text about item 1/2 adsfas ...
1.2 Winter Vegetables
some text about Winter Vegetables ...
2. Fruit
2.1 Bush Fruits
some text about bush fruits
2.2 Tree Fruits
some text Tree Fruits ..
.... what I have tried is shown below. Although I have used
OrderedLists I am not committed to doing it that way - I would prefer
just to tell the sections to number themselves but I can't figure out
how to. Any help would be appreciated.
Example starts below :
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="file://localhost/D:/bin/installed/XMLMorphonEditor/Examples/docbook/docbook.css"
type="text/css"?>
<!DOCTYPE article SYSTEM
"file://localhost/D:/bin/installed/XMLMorphonEditor/Examples/docbook/dtd/docbookx.dtd">
<article>
<abstract>
<para></para>
</abstract>
<section>
<title>Title of my section numbering example</title>
<para>This is an introductory paragraph.</para>
<orderedlist continuation="continues" inheritnum="inherit"
numeration="arabic">
<listitem>
<para>Vegetables<orderedlist continuation="continues"
inheritnum="inherit" numeration="arabic">
<listitem>
<para>Spring Vegetables<orderedlist
continuation="continues" inheritnum="inherit" numeration="arabic">
<listitem>
<para>European Spring Vegetables</para>
</listitem>
<listitem>
<para>North American Spring Vegetables</para>
</listitem>
</orderedlist></para>
</listitem>
<listitem>
<para>Winter Vegetables</para>
</listitem>
<listitem>
<para>Fruit<orderedlist continuation="continues"
inheritnum="inherit" numeration="arabic">
<listitem>
<para>Bush Fruits</para>
</listitem>
<listitem>
<para>Spring Fruits</para>
</listitem>
</orderedlist></para>
</listitem>
</orderedlist>Vegetables</para>
</listitem>
<listitem>
<para>Fruit<orderedlist continuation="continues"
inheritnum="inherit" numeration="arabic">
<listitem>
<para>Bush Fruits</para>
</listitem>
<listitem>
<para>Spring Fruits</para>
</listitem>
</orderedlist></para>
</listitem>
</orderedlist>
</section>
</article>