This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: ELEMENT declaration in DTD
- To: Mike Sangrey <mike at sojurn dot lns dot pa dot us>
- Subject: DOCBOOK: Re: ELEMENT declaration in DTD
- From: Karl Eichwalder <ke at gnu dot franken dot de>
- Date: 06 Jun 2000 21:43:51 +0200
- Cc: docbook at lists dot oasis-open dot org
- References: <200006051930.PAA32091@sojurn.lns.pa.us>
- Reply-To: docbook at lists dot oasis-open dot org
Mike Sangrey <mike@sojurn.lns.pa.us> writes:
> <!ELEMENT foobar - - ((some|stuff)*)>
> or
> <!ELEMENT foobar - O ((some|stuff)*)>
>
> What are the '-' and 'O' doing in there? A case of virtual beer if you
> include an XML Spec. section citation. :-)
You'll have to look at the "SGML Spec." ;-) The 'O' means "optional";
optional tags are not required:
<para>
First paragraph
<para>
Second paragraph
The end tag is implied by context. In XML you'll have to close every
tag explicitly; therefore no '-' and 'O' at all.
--
work : ke@suse.de |
: http://www.suse.de/~ke/ | ------ ,__o
home : ke@gnu.franken.de | ------ _-\_<,
: http://www.franken.de/users/gnu/ke/ | ------ (*)/'(*)