Other Patterns

Other Patterns

Patterns using other forms

1. Boolean values
1.

Boolean values

DaveP

When a true | false pattern is needed, the following pattern may be used. I've provided an attribute value.

 <element name="location">
   <attribute name="online">
         <data type="boolean"/>
    </attribute>
   <empty/>
  </element>
     

The attribute itself may take any value from the set 0 | 1 | true | false to indicate that truth value.