Files
alfresco-community-repo/source/test-resources/xforms/unit-tests/attributes-test/attributes-test.xsd
Ariel Backenroth ea6c85be54 - beginning to respect fixed values from xsd
- fixing bug with default values for select widgets
- some more unit tests for repeating items, and xsd attributes
- parsing xsd when creating the form and presenting a combobox with element names that are possible root tag names
- ensuring that there can't be multiple output methods that output the same extension
- moving createxmlcontenttype to createformwizard in wcm where it belongs.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4112 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-10-15 22:40:49 +00:00

63 lines
2.2 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:string">
<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:string"
minOccurs="1"
maxOccurs="1"/>
<xs:element name="element_string_with_default"
type="xs:string"
minOccurs="1"
maxOccurs="1"
default="default string value"/>
</xs:sequence>
<xs:attribute name="required_string_no_default"
type="xs:string"
use="required"/>
<xs:attribute name="optional_string_no_default"
type="xs:string"
use="optional"/>
<xs:attribute name="required_string_with_default"
type="xs:string"
use="required"
default="default string value"/>
<xs:attribute name="optional_string_with_default"
type="xs:string"
use="optional"
default="default string value"/>
<xs:attribute name="fixed_string"
type="xs:string"
use="optional"
fixed="fixed string value"/>
<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>