Skip to main content
Version: DocBook V4.5

primary

primary — The primary word or phrase under which an index term should be sorted

Synopsis​

Mixed Content Model​

primary ::=
(#PCDATA|footnoteref|xref|biblioref|abbrev|acronym|citation|
citerefentry|citetitle|citebiblioid|emphasis|firstterm|
foreignphrase|glossterm|termdef|footnote|phrase|orgname|quote|
trademark|wordasword|personname|link|olink|ulink|action|
application|classname|methodname|interfacename|exceptionname|
ooclass|oointerface|ooexception|package|command|computeroutput|
database|email|envar|errorcode|errorname|errortype|errortext|
filename|function|guibutton|guiicon|guilabel|guimenu|guimenuitem|
guisubmenu|hardware|interface|keycap|keycode|keycombo|keysym|
literal|code|constant|markup|medialabel|menuchoice|mousebutton|
option|optional|parameter|prompt|property|replaceable|
returnvalue|sgmltag|structfield|structname|symbol|systemitem|uri|
token|type|userinput|varname|nonterminal|anchor|author|
authorinitials|corpauthor|corpcredit|modespec|othercredit|
productname|productnumber|revhistory|remark|subscript|
superscript|inlinegraphic|inlinemediaobject)*

Attributes​

Common attributes

Name

Type

Default

sortas

CDATA

None

Description​

In an IndexTerm, Primary identifies the most significant word or words in the entry. All IndexTerms must have a Primary.

Processing expectations​

Suppressed. This element provides data for processing but it is not rendered in the primary flow of text.

Future Changes​

The InterfaceDefinition element will be discarded in DocBook V4.0. It will no longer be available in the content model of this element.

Parents​

These elements contain primary: indexterm.

Attributes​

sortas

SortAs specifies the string by which the element's content is to be sorted. If unspecified, the proper content is used.

Examples​

For examples, see chapter, indexterm.