OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


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


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC