| ||||||
SummaryThe APIDOC namespace provides a way of describing an API in XML. | ||||||
DescriptionAPIDOC is an XML based API documentation system which allows the document writer to create document content using a set of logical tags in an XML file. A perl script, parse_apidoc.pl, processes the source XML, and generates a collection of HTML files suitable for web publishing.
The set of tags available in APIDOC is very small compared to HTML,
and can be broken down into three groups. These are Organizational,
Formatting, and Other. Organizational tags are
logical sections of an API document, such as an See the README for instructions on how to run APIDOC. | ||||||
NotesTags and attributes are case sensitive. In APIDOC, all tag names are in UPPERCASE, and all attribute names are lowercase.The document you are reading was created with APIDOC, see http://www.mozilla.org/projects/apidoc/apidoc.xml for the source. APIDOC was originally written to allow engineers in the JavaScript group at Netscape to maintain their own documentation on the JavaScript Embedding API. That document is available from the JavaScript Page on mozilla.org | ||||||
See Also
|
| |||||||||
SummaryContainer for all other tags. | |||||||||
Syntax<API id="..." version="..."> . . . </API>
| |||||||||
DescriptionTheAPI tag is the top level container for all other tags. It is
analogous to the HTML tag in used in HTML documents. Unlike in HTML,
if tags appear outside of the API tag, the file will fail to
parse.
| |||||||||
NotesAPI is the top level tag, it contains all other tags.
| |||||||||
See Also
|
| ||||
SummaryMarks text as bold. | ||||
Syntax<B>foo</B> | ||||
DescriptionAny text contained in aB tag will appear bold. This tag
functions exactly like the B tag in HTML.
| ||||
NotesFormatting tags cannot be used inSYNTAX or EXAMPLE
tags (but they can be used in PARAM tags.)
| ||||
See Also
|
| ||||
SummaryInserts a line break. | ||||
Syntax<BR/> | ||||
DescriptionThis tag functions exactly like the BR tag in HTML. | ||||
NotesFormatting tags cannot be used inSYNTAX or EXAMPLE
tags (but they can be used in PARAM tags.)
| ||||
See Also
|
| ||||||
SummaryMarks text as code. | ||||||
Syntax<C>foo</C> | ||||||
DescriptionAny text contained in aC tag will appear in a mono-space
font, rendered using the HTML CODE tag. In addition, if the text is an
ENTRYid (but not the current ENTRY), a link will
be created to the ENTRY in the text, and a SEEALSO tag
will be generated.
For example, all of the links in this body of text
were generated by wrapping the plain text in a | ||||||
NotesFormatting tags cannot be used inSYNTAX or EXAMPLE
tags (but they can be used in PARAM tags.)
| ||||||
See Also
|
| ||||
SummaryMarks anENTRY as deprecated.
| ||||
Syntax<DEPRECATED/> | ||||
DescriptionMarking an entry asDEPRECATED tells would-be users that
the use of that ENTRY is not advised. Further information
can be placed in the DESCRIPTION or NOTE tag. Marking
an entry as DEPRECATED automatically makes it a member of the
'Deprecated' GROUP.
| ||||
NotesDEPRECATED can only be contained by an ENTRY tag.
| ||||
See Also
|
| ||||||
SummaryLong description for theENTRY
| ||||||
Syntax<DESCRIPTION> . . . </DESCRIPTION> | ||||||
DescriptionContains a long description of theENTRY. Literal HTML can
be included using a
<![CDATA[ . . . ]]> tag. The CDATA
'trick' can actually be used inside any APIDOC tag, but is most
useful for DESCRIPTIONs.
| ||||||
NotesDESCRIPTION can only be contained by an ENTRY tag.
| ||||||
See Also
|
| ||||||
SummaryAn entry point in the API. | ||||||
Syntax<ENTRY id="..."> . . . </ENTRY>
| ||||||
DescriptionTheENTRY tag declares an API entry point you wish to document.
It serves as the container for most other Organizational tags.
Entries can be referenced in SEEALSO tags. If text appearing
in a C tag is also an ENTRY, a link will be created.
| ||||||
NotesENTRY can only be contained by the API tag.
| ||||||
See Also
|
| ||||||
SummaryAn example usage theENTRY.
| ||||||
Syntax<EXAMPLE desc="..."> . . . </EXAMPLE>
| ||||||
DescriptionContains a "real world" example of theENTRY being used.
As with the SYNTAX tag text inside EXAMPLE tags will
be rendered in a mono-space font, and leading spaces are significant.
The desc attribute can be used to provide a short caption for the
example.
| ||||||
ExampleThis an example of the EXAMPLE tag<EXAMPLE desc="This an example of the EXAMPLE tag"> Place sample code to be rendered in a mono-space font here. </EXAMPLE> | ||||||
NotesEXAMPLE can only be contained by an ENTRY tag.
Formatting tags cannot be used inside an | ||||||
See Also
|
| |||||||||
SummaryAn external source with more information about the API. | |||||||||
Syntax<EXTERNALREF name="..." value="..."/>
| |||||||||
DescriptionEXTERNALREFs will be added to the 'See Also' portion of
an ENTRY. If an EXTERNALREF appears as a child of the
API tag, and the value of the URL contains the characters
'{e}', the reference will be attached to every entry, and the
ENTRYs id will be substituted in for '{e}'. If '{e}' does
not appear in the value attribute, APIDOC assumes that this
EXTERNALREF applies to the API as a whole, and only lists it in
the table of contents.
If an
Multiple | |||||||||
NotesTYPE can only be contained by the API and ENTRY
tags.
| |||||||||
See Also
|
| ||||
SummaryDefines a footer for the generated pages. | ||||
DescriptionText contained by aFOOT tag will be included as the footer for
every generated page, including Entries and the Table of Contents.
| ||||
NotesTheFOOT tag can only be contained by an API tag.
All Formatting tags are valid within the | ||||
See Also
|
| |||||||||
SummaryIncludes anENTRY in a group.
| |||||||||
Syntax<GROUP name="..." [value="..."]/>
| |||||||||
DescriptionFor each uniqueGROUP name appearing in the API, a sub-heading
will appear in the Table of Contents, listing each member of the
GROUP. Multiple GROUP tags can appear as children of
the API tag. The GROUP tag can appear as a child of
either the API tag, or an ENTRY tag. When a GROUP
is parented directly by the API tag, both name and
value attributes must be specified. When a GROUP tag
is parented by an ENTRY tag, the id of the containing
ENTRY is used in place of the value attribute.
Marking an item as | |||||||||
NotesGROUP can only be contained by the API and ENTRY
tags.
| |||||||||
See Also
|
| ||||
SummaryDefines a header for the generated pages. | ||||
DescriptionText contained by aHEAD tag will be included as the header for
every generated page, including Entries and the Table of Contents.
| ||||
NotesTheHEAD tag can only be contained by the API tag.
All Formatting tags are valid within the | ||||
See Also
|
| ||
SummaryMarks text as italic. | ||
Syntax<I>foo</I> | ||
DescriptionAny text contained in aI tag will appear in italics. This tag
functions exactly like the I tag in HTML.
| ||
See Also
|
| ||||
SummaryImportant notes about theENTRY.
| ||||
Syntax<NOTE> . . . </NOTE> | ||||
DescriptionContains notes about the entry that should stand out from the description for one reason or another. If an entry is deprecated, theNOTES section would be a good place to explain why.
| ||||
NotesNOTE can only be contained by an ENTRY tag.
| ||||
See Also
|
| ||
SummaryMarks the beginning of a new paragraph. | ||
Syntax<P/>. . . | ||
DescriptionMarks the start of a new paragraph. Unlike in HTML,P tags
are not containers. That is, the only valid P tag is the one
shown here.
| ||
See Also
|
| |||||||||
SummaryDescription for a parameter used by theENTRY
| |||||||||
Syntax<PARAM name="..." type="..."> . . . </PARAM>
| |||||||||
DescriptionUsed to describe a parameter used by theENTRY. PARAM
tags can only be contained inside SYNTAX tags. Multiple
PARAM tags can appear in a SYNTAX tag (typically one
for each parameter). PARAM tags will be displayed in the
order they appear.
| |||||||||
Example<PARAM name="name" type="string"> The name of the parameter. </PARAM> <PARAM name="type" type="string"> The data type of the parameter. </PARAM> | |||||||||
NotesPARAM can only be contained by a SYNTAX tag.
| |||||||||
See Also
|
| |||||||||
SummaryDescription for the return value of theENTRY
| |||||||||
Syntax<RETVAL [name="..."] type="..."> . . . </RETVAL>
| |||||||||
DescriptionRETVAL works exactly like the PARAM tag, with the
exception that the name attribute is optional. If
name is omitted, it defaults to the string "Return Value".
| |||||||||
NotesRETVAL can only be contained by a SYNTAX tag.
| |||||||||
See Also
|
| ||||
SummaryCreates an inline link to anEXTERNALREF or GROUP.
| ||||
Syntax<S>. . .</S> | ||||
DescriptionIf the text wrapped in anS tag is a valid GROUP
(including a GROUP implied by a TYPE or DEPRECATED
tag) a link to the referenced group will be created in addition to the
text. If instead, the text matches a valid EXTERNALREF tag, a
link to the external reference will be created.
In both cases, an appropriate entry is added to the | ||||
NotesIf the text contained by anS tag does not match any GROUP
or EXTERNALREF, the parse will fail.
Formatting tags cannot be used in | ||||
See Also
|
| ||||||
SummaryAssociate oneENTRY with another.
| ||||||
Syntax<SEEALSO value="..."/>
| ||||||
DescriptionAssociates one entry with another. MultipleSEEALSO tags
can appear in an ENTRY. Using an entry in a C tag
creates a SEEALSO tag for it automatically. The
EXTERNALREF tag can be used to attach references to external
documents to entries.
| ||||||
See Also
|
| ||||
SummaryA brief summary for theENTRY.
| ||||
Syntax<SUMMARY> . . . </SUMMARY> | ||||
DescriptionGives the user a brief overview of theENTRY's purpose. See the
'Summary' of this entry for an example.
| ||||
See Also
|
| ||||
SummarySyntax for using theENTRY.
| ||||
Syntax<SYNTAX> . . . </SYNTAX> | ||||
DescriptionShows the user an abstract use of theENTRY. PARAM
tags can be contained by the SYNTAX tag to further illustrate
parameters. Text inside SYNTAX tags will be rendered in a
mono-space font using the HTML PRE tag. Leading spaces in the text
contained in a SYNTAX tag are converted to
entities. Use the EXAMPLE tag for concrete examples.
| ||||
NotesSYNTAX can only be contained by an ENTRY tag.
Formatting tags cannot be used inside an | ||||
See Also
|
| ||||||
SummaryIndicates the type of anENTRY.
| ||||||
Syntax<TYPE value="..."/>
| ||||||
DescriptionThe value attribute should be used to describe theENTRYs
type. For example, documentation on a C based API may use 'Macro',
'Data Structure' and 'Function' as types, while this document
uses 'Organizational', 'Formatting', and 'Other'
as type names.
When a | ||||||
NotesTYPE can only be contained by an ENTRY tag.
| ||||||
See Also
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||
SummaryCSS file referenced by generated content pages. | ||||||||||||||||||||||||||||||||||||||||||||||||||
DescriptionThe following styles are referenced by generated content pages:
| ||||||||||||||||||||||||||||||||||||||||||||||||||
See Also
|
| ||||||||||||||||||||
SummaryCSS file referenced by generated Table of Contents pages. | ||||||||||||||||||||
DescriptionThe following styles are referenced by generated Table of Contents pages:
| ||||||||||||||||||||
See Also
|