This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: class extends superclass
- From: Norman Walsh <ndw at nwalsh dot com>
- To: Elliotte Rusty Harold <elharo at metalab dot unc dot edu>
- Cc: docbook at lists dot oasis-open dot org
- Date: Fri, 22 Mar 2002 06:34:50 -0500
- Subject: DOCBOOK: Re: class extends superclass
- References: <3C9A95B8.8040906@metalab.unc.edu>
/ Elliotte Rusty Harold <elharo@metalab.unc.edu> was heard to say:
| Is there an element I'm missing somewhere? or would the following work:
|
| <classsynopsis language="Java">
| <ooclass>
| <modifier>public</modifier>
| <modifier>abstract</modifier>
| <classname>SAXParserFactory</classname>
| <modifier>extends Object</modifier>
| </ooclass>
| </classsynopsis>
|
| It's not really a modifier though.
No, that won't work because all the modifiers have to come first. What you
want is:
<classsynopsis language="Java">
<ooclass>
<modifier>public</modifier>
<modifier>abstract</modifier>
<classname>SAXParserFactory</classname>
</ooclass>
<ooclass>
<classname>Object</classname>
</ooclass>
</classsynopsis>
Not exactly intuitive, but it avoids having markup names like
"extends" that are specific to a given programming language.
Be seeing you,
norm
--
Norman Walsh <ndw@nwalsh.com> | No man's knowledge here can go
http://www.oasis-open.org/docbook/ | beyond his experience.--John Locke
Chair, DocBook Technical Committee |