This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: ELEMENT declaration in DTD


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/ |        ------   (*)/'(*)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]