Files
alfresco-community-repo/source/test-resources/xforms/unit-tests/interesting-schema-test/attributes-test.xsd
Derek Hulley 0671335628 Merged V2.0 to HEAD
5144:  Original HEAD revision 5141 that was reverted
      WCM-317
      WCM-302
      WCM-333
      WCM-270
      WCM-312
      WCM-305
      WCM-298


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5326 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-03-07 11:46:17 +00:00

67 lines
2.4 KiB
XML

<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
<xs:simpleType name="attribute-choices" >
<xs:restriction base="xs:normalizedString">
<xs:enumeration value="string1"/>
<xs:enumeration value="string2"/>
<xs:enumeration value="string3-is-the-default"/>
<xs:enumeration value="string4"/>
<xs:enumeration value="string5"/>
<xs:enumeration value="string6"/>
<xs:enumeration value="string7"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="attributes">
<xs:complexType>
<xs:sequence>
<xs:element name="element_string_no_default"
type="xs:normalizedString"
minOccurs="1"
maxOccurs="1"/>
<xs:element name="element_string_with_default"
type="xs:normalizedString"
minOccurs="1"
maxOccurs="1"
default="default string value"/>
</xs:sequence>
<xs:attribute name="required_string_no_default"
type="xs:normalizedString"
use="required"/>
<xs:attribute name="optional_string_no_default"
type="xs:normalizedString"
use="optional"/>
<xs:attribute name="required_string_with_default"
type="xs:normalizedString"
use="required"
default="default string value"/>
<xs:attribute name="optional_string_with_default"
type="xs:normalizedString"
use="optional"
default="default string value"/>
<xs:attribute name="fixed_string"
type="xs:normalizedString"
use="optional"
fixed="fixed string value"/>
<xs:attribute name="fixed_required_decimal"
type="xs:decimal"
use="required"
fixed="1.1"/>
<xs:attribute name="required_choices_no_default"
type="attribute-choices"
use="required"/>
<xs:attribute name="optional_choices_no_default"
type="attribute-choices"
use="optional"/>
<xs:attribute name="required_choices_with_default"
type="attribute-choices"
use="required"
default="string3-is-the-default"/>
<xs:attribute name="optional_choices_with_default"
type="attribute-choices"
use="optional"
default="string3-is-the-default"/>
</xs:complexType>
</xs:element>
</xs:schema>