This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: mixing section elements
- From: Norman Walsh <ndw at nwalsh dot com>
- To: Roel Vanhout <roel at riks dot nl>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Thu, 23 Jan 2003 09:00:56 -0500
- Subject: DOCBOOK-APPS: Re: mixing section elements
- References: <3E2FDF93.4000300@riks.nl>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
/ Roel Vanhout <roel@riks.nl> was heard to say:
| the moment) Arbortext's Epic editor to edit the document, and it
| complained that <simplesect> was out of context when it's parent node
| also had <sect1> or <section> elements, eg like this:
You can't mix section types. They form a strict hierarchy.
| <chapter>
| <title>Example title</title>
| <sect1><para>Test para</para></sect1>
| <simplesect><para>Another test para</para></simplesect>
| </chapter>
It might be reasonable to allow that, although I would always want to
prohibit
<chapter>
<title>Example title</title>
<sect1><para>Test para</para></sect1>
<section><para>Test para</para></section>
</chapter>
and
<chapter>
<title>Example title</title>
<sect1><para>Test para</para></sect1>
<simplesect><para>Another test para</para></simplesect>
<sect1><para>Test para</para></sect1>
</chapter>
| I also couldn't add a <simplesect> element as a sibling to a <sect1>,
| <sect2> or <section> element through Epic's GUI.
| I looked through the documentation (tdg) and looked at the content
| model of chapter, and although I'm not an expert at reading dtd's, it
| looks like my example should be valid. Now, the dtd that Epic uses is
| that for DocBook 4.0; has this changed in the mean time? Did I read
| the content model wrong? Any hints? Thanks!
You can do this:
<chapter>
<title>Example title</title>
<sect1><para>Test para</para>
<simplesect><para>Another test para</para></simplesect>
</sect1>
</chapter>
Be seeing you,
norm
- --
Norman Walsh <ndw@nwalsh.com> | One of the great misfortunes of
http://www.oasis-open.org/docbook/ | mankind is that even his good
Chair, DocBook Technical Committee | qualities are sometimes useless to
| him, and that the art of employing
| and well directing them is often
| the latest fruit of his
| experience.--Chamfort
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.7 <http://mailcrypt.sourceforge.net/>
iD8DBQE+L/WYOyltUcwYWjsRApKNAJ0Raz/BpT1US2D3Sku9iPAYUwqFDgCfauT1
c5dHE0pV1kq3PKceidA/nPY=
=qcTJ
-----END PGP SIGNATURE-----