The <boolean> element is used to express one of two opposite values, such as yes or no, on or off, true or false, high or low, and so forth. The element itself is empty; the value of the element is stored in its state attribute, and the semantic associated with the value is typically in a specialized name derived from this element. If you need more than two values (for example, "yes," "no" and "don't care") use the <state> element instead. This element is primarily for specialization, where it can be used to require a logical true or false designation in a particular part of the document.
no content
Name | Description | Data Type | Default Value | Required? |
---|---|---|---|---|
state | The state of the boolean element. Allowable values are: yes no | CDATA | #IMPLIED | No |
%univ-atts; (%select-atts;, %id-atts;, translate, xml:lang) | A set of related attributes, described at %univ-atts; | parameter entity | PE not applicable | Not applicable |
%global-atts; (xtrf, xtrc) | A set of related attributes, described at %global-atts; | parameter entity | PE not applicable | Not applicable |
class, outputclass | Common attributes described in Other common DITA attributes |
She said "<boolean state="yes"/>" when I asked her to marry me!
OASIS DITA Language Specification v1.0 -- 09 May 2005
Copyright (c) OASIS Open 2005. All Rights Reserved.