This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
RE: ELEMENT declaration in DTD
- To: "'docbook at lists dot oasis-open dot org'" <docbook at lists dot oasis-open dot org>
- Subject: RE: DOCBOOK: ELEMENT declaration in DTD
- From: "Mueller, Bob" <Bob dot Mueller at compuware dot com>
- Date: Tue, 6 Jun 2000 11:09:21 -0400
- Reply-To: docbook at lists dot oasis-open dot org
> Everywhere in the DocBook DTD files one sees lines like:
>
> <!ELEMENT foobar - - ((some|stuff)*)>
> or
> <!ELEMENT foobar - O ((some|stuff)*)>
>
> What are the '-' and 'O' doing in there?
----These are minimization tags. They are enabled in SGML by setting the
'OMITTAG' feature to 'YES'. (I'm not sure if this needs to be set in XML)
Basically, it specifies whether start and/or end tags are required for the
element (the first one represents the start tag, the other one, the end
tag). '-' means the tag is required, and (of course) 'O' means it does not
(we set everything to '-' to keep everything simple).
I do not know the XML Spec. section citation, but now that you know what it
is, you can probably find it.
Bob Mueller
Compuware Corp.