Software Domain Elements

Describes the elements available in the DITA software domain and provides examples for styling.

User Input <userinput>

The userinput element contains text the user should enter in a field, a full command, or in response to a system prompt.

Example: Type copy example.txt C:\newfolder\subfolder\example.txt to create a copy of the file example.txt.

File Path <filepath>

The filepath element contains the folder or directory path to the location of a file.

Example: Browse to the location at the location C:\newfolder\subfolder to find the new file.

Variable Name <varname>

The <varname> element specifies a variable that must be supplied to a software application.

Example: Browse to the location \projects\working\varname \source\varname.java.

System Output <systemoutput>

The systemoutput element contains text output from the system in response to an event or user action. Note that the systemoutput element is a generic tag, while the msgph element may be more appropriate for specific messages.

Example: If a file with the same name already exists at that location, the system confirms whether you want to overwrite the existing file with the prompt Overwrite C:\newfolder\subfolder\example.txt? (Yes/No/All).

Command Name <cmdname>

The cmdname element contains the name of a command, such as in a command-line interface.

Example: You can use the copy command to copy a file to another file and location.

Message Phrase <msgph> and Message Number <msgnum>

The msgph element contains the content of a message delivered by the software, such as a confirmation or an error. It is often paired with the msgnum element, which contains the numerical identifier for the message.

Example: If more information is available, the system prompts the user Would you like to know more?.

Example: If a web page cannot be found, the browser displays a 404 Not Found error message.

Message Block <msgblock>

The msgblock element contains either a multi-line message or a set of messages. Message blocks retain line breaks and white space from the code.

The contents can be entered directly into the msgblock element:

Ethernet adapter Ethernet:

   Connection-specific DNS Suffix  . :
   IPv6 Address. . . . . . . . . . . : fdf0:5e6a:f56a:7c06:e87d:7244:1e50:3c35
   Temporary IPv6 Address. . . . . . : fdf0:5e6a:f56a:7c06:b0ee:bd9:b757:b94b
   Link-local IPv6 Address . . . . . : fe80::df6d:46f6:d259:6bd9%9
   IPv4 Address. . . . . . . . . . . : 192.168.1.215
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.1.1

The msgblock element can also contain a set of msgnum and msgph elements:

401 Unauthorized
402 Payment Required
403 Forbidden
404 Not Found

API Name <apiname> and Parameter Name <parmname>

The apiname element contains the name of an application programming interface (API), service, or endpoint that a system or developer interacts with.

The parmname element contains the name of a parameter that is passed to an API, function, or request to control its behavior or provide input data.

Example: When calling the createUser API, you must supply the email and password parameters to successfully create a new user account.