Prefer trailing comments
<xs:element name="kw" type="Keyword" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="for" type="For" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="if" type="If" minOccurs="0" maxOccurs="unbounded" />
- <!-- Assigned variables. -->
- <xs:element name="var" type="xs:string" minOccurs="0" maxOccurs="unbounded" />
- <!-- Arguments -->
- <xs:element name="arg" type="xs:string" minOccurs="0" maxOccurs="unbounded" />
- <xs:element name="doc" type="xs:string" minOccurs="0" />
<xs:element name="msg" type="Message" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element name="var" type="xs:string" minOccurs="0" maxOccurs="unbounded" /> <!-- Assignment -->
+ <xs:element name="arg" type="xs:string" minOccurs="0" maxOccurs="unbounded" /> <!-- Arguments -->
+ <xs:element name="doc" type="xs:string" minOccurs="0" />
<xs:element name="tag" type="xs:string" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="timeout" type="Timeout" minOccurs="0" />
<xs:element name="status" type="BodyItemStatus" />
</xs:choice>
<xs:attribute name="name" type="xs:string" />
<xs:attribute name="library" type="xs:string" />
- <!-- Original name of the keyword when using embedded arguments, not used otherwise. -->
- <xs:attribute name="sourcename" type="xs:string" />
- <!-- Type is used only with setup and teardown. -->
- <xs:attribute name="type" type="KeywordType" />
+ <xs:attribute name="sourcename" type="xs:string" /> <!-- Original name with embedded arguments. Not used otherwise. -->
+ <xs:attribute name="type" type="KeywordType" /> <!-- Only used with setups and teardowns. -->
</xs:complexType>
<xs:simpleType name="KeywordType">
<xs:restriction base="xs:string">
</xs:simpleType>
<xs:complexType name="For">
<xs:choice maxOccurs="unbounded">
- <!-- Loop variables. -->
- <xs:element name="var" type="xs:string" minOccurs="0" maxOccurs="unbounded" />
- <!-- Loop values. -->
- <xs:element name="value" type="xs:string" minOccurs="0" maxOccurs="unbounded" />
- <!-- Individual loop iterations. -->
+ <xs:element name="var" type="xs:string" minOccurs="0" maxOccurs="unbounded" /> <!-- Loop variables -->
+ <xs:element name="value" type="xs:string" minOccurs="0" maxOccurs="unbounded" /> <!-- Loop values -->
<xs:element name="iter" type="ForIteration" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="msg" type="Message" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="doc" type="xs:string" minOccurs="0" />
</xs:complexType>
<xs:complexType name="If">
<xs:choice maxOccurs="unbounded">
- <!-- IF/ELSE branches. -->
<xs:element name="branch" type="IfBranch" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="msg" type="Message" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="doc" type="xs:string" minOccurs="0" />
