Language reference : Technical content elements : Domain elements : Software elements : varname
WebWorks  
varname
The variable name (<varname>) element defines a variable that must be supplied to a software application. The variable name element is very similar to the variable (var) element, but variable name is used outside of syntax diagrams. This element is part of the DITA software domain, a special set of DITA elements designed to document software tasks, concepts and reference information.
Contains
Note: These models represent only the default document types distributed by OASIS. Actual content models will differ with each new document type.
Doctype
Content model
topic (technical content), map (technical content), concept, ditabase, glossary, glossentry, glossgroup, reference, task, bookmap
( text data or text) (any number)
Contained by
Doctype
Content model
topic (technical content), concept
map (technical content)
ditabase
glossary, glossentry, glossgroup
reference
task (strict), task (general)
bookmap
Inheritance
+ topic/keyword sw-d/varname
Example 382. Example
<filepath>
<varname>install-dir</varname>\projects\working\<varname>project-dir</varname>
\source\<varname>filename</varname>.java
</filepath>
Attributes
Name
Description
Data Type
Default Value
Required?
univ-atts attribute group (includes select-atts, id-atts, and localization-atts groups)
A set of related attributes, described in univ-atts attribute group
global-atts attribute group (xtrf, xtrc)
A set of related attributes, described in global-atts attribute group
class, outputclass, keyref
Keyref provides a redirectable reference based on a key defined within a map. See The keyref attribute for information on using this attribute. Class and outputclass are described in Other common DITA attributes