Update Libdoc spec schema after lib scope changes.
Part of
<xs:element name="version" type="xs:string" />
<!-- Both "scope" and "namedargs" elements are deprecated.
Use attributes with same names instead. -->
- <xs:element name="scope" type="LibraryScope" minOccurs="0" />
- <xs:element name="namedargs" type="SupportNamedArgs" minOccurs="0" />
+ <xs:element name="scope" type="DeprecatedScope" minOccurs="0" />
+ <xs:element name="namedargs" type="DeprecatedNamedArgs" minOccurs="0" />
<xs:element name="doc" type="xs:string" />
<xs:element name="init" type="Init" minOccurs="0" />
<xs:element name="kw" type="Keyword" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="tag" type="xs:string" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
- <xs:simpleType name="LibraryScope">
- <xs:restriction base="xs:string">
- <xs:enumeration value="" />
- <xs:enumeration value="global" />
- <xs:enumeration value="test suite" />
- <xs:enumeration value="test case" />
- </xs:restriction>
- </xs:simpleType>
<xs:simpleType name="DocumentationFormat">
<xs:restriction base="xs:string">
<xs:enumeration value="ROBOT" />
<xs:maxInclusive value="2" />
</xs:restriction>
</xs:simpleType>
- <!-- This is only used with the deprecated "namedargs" element.
- The "namedargs" attribute is xs:boolean. -->
- <xs:simpleType name="SupportNamedArgs">
+ <xs:simpleType name="LibraryScope">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="GLOBAL" />
+ <xs:enumeration value="SUITE" />
+ <xs:enumeration value="TEST" />
+ </xs:restriction>
+ </xs:simpleType>
+ <!-- Compatibility with RF < 3.2. -->
+ <xs:simpleType name="DeprecatedScope">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="" />
+ <xs:enumeration value="global" />
+ <xs:enumeration value="test suite" />
+ <xs:enumeration value="test case" />
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="DeprecatedNamedArgs">
<xs:restriction base="xs:string">
<xs:enumeration value="yes" />
<xs:enumeration value="no" />
