Merged V2.0 to HEAD

5146: AR-1122
   5148: AR-1116
   5149: RM-5
   5152: AR-1167
   5153: WCM-324
   5154: WCM-325, WCM-301, WCM-258, WCM-25, WCM-320
   5156: WCM-338
   5158: AR-1164
   5169: AR-1216
   5177: WCM-328


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5327 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2007-03-07 12:01:58 +00:00
parent 0671335628
commit 52a3fa1ed1
19 changed files with 877 additions and 187 deletions

View File

@@ -0,0 +1,117 @@
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:alf="http://www.alfresco.org"
xmlns:alfdotcom="http://www.eyestreet.com/alfresco" targetNamespace="http://www.eyestreet.com/alfresco"
elementFormDefault="qualified">
<!-- Include navigation simpleType definition -->
<!-- xs:include schemaLocation="/get_nav_simple_type.jsp" / -->
<xs:simpleType name="form-method">
<xs:restriction base="xs:normalizedString">
<xs:enumeration value="get">
<xs:annotation>
<xs:appinfo>
<alf:label>GET</alf:label>
</xs:appinfo>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="post">
<xs:annotation>
<xs:appinfo>
<alf:label>POST</alf:label>
</xs:appinfo>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="form-element-type">
<xs:restriction base="xs:normalizedString">
<xs:enumeration value="text">
<xs:annotation>
<xs:appinfo>
<alf:label>Text</alf:label>
</xs:appinfo>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="textarea">
<xs:annotation>
<xs:appinfo>
<alf:label>Text Area</alf:label>
</xs:appinfo>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="checkbox">
<xs:annotation>
<xs:appinfo>
<alf:label>Checkbox</alf:label>
</xs:appinfo>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="select">
<xs:annotation>
<xs:appinfo>
<alf:label>Selection (Single)</alf:label>
</xs:appinfo>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="selectmulti">
<xs:annotation>
<xs:appinfo>
<alf:label>Selection (Multiple)</alf:label>
</xs:appinfo>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="form-element">
<xs:sequence>
<xs:element name="id" type="xs:normalizedString" />
<xs:element name="type" type="alfdotcom:form-element-type" />
<xs:element name="label" type="xs:normalizedString" />
<xs:element name="description" type="xs:normalizedString" minOccurs="0" />
<xs:element name="default-value" type="xs:normalizedString" minOccurs="0" />
<xs:element name="select-values" type="xs:normalizedString" minOccurs="0" />
<xs:element name="required" type="xs:boolean" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="form-element-hidden">
<xs:sequence>
<xs:element name="id" type="xs:normalizedString" />
<xs:element name="value" type="xs:normalizedString" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="form-section">
<xs:sequence>
<xs:element name="section-title" type="xs:normalizedString" minOccurs="0" />
<xs:element name="section-text" type="xs:anyType" minOccurs="0" />
<xs:element name="form-elements" type="alfdotcom:form-element" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:element name="web-form">
<xs:complexType>
<xs:sequence>
<xs:element name="id" type="xs:normalizedString">
<xs:annotation>
<xs:appinfo>
<alf:label>Form ID</alf:label>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="title" type="xs:normalizedString" />
<xs:element name="description" type="xs:anyType" minOccurs="0" />
<xs:element name="action" type="xs:normalizedString" />
<xs:element name="method" type="alfdotcom:form-method" default="post" />
<xs:element name="submit-text" type="xs:normalizedString" minOccurs="0" />
<!-- xs:element name="section" type="alfdotcom:navigation" / -->
<xs:element name="enabled" type="xs:boolean" default="true" />
<xs:element name="sections" type="alfdotcom:form-section" minOccurs="1" maxOccurs="unbounded" />
<xs:element name="hidden-fields" type="alfdotcom:form-element-hidden" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

View File

@@ -1,17 +1,28 @@
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
<xs:complexType name="repeat-simple">
<xs:complexType name="repeat-min1">
<xs:sequence>
<xs:element name="not-repeated" type="xs:normalizedString" minOccurs="1" maxOccurs="1" default="nr"/>
<xs:element name="one-to-one" type="xs:normalizedString" minOccurs="1" maxOccurs="1"/>
<xs:element name="zero-to-inf" type="xs:normalizedString" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="one-to-inf" type="xs:normalizedString" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="repeat-min0">
<xs:sequence>
<xs:element name="not-repeated" type="xs:normalizedString" minOccurs="1" maxOccurs="1" default="nr"/>
<xs:element name="zero-to-one" type="xs:normalizedString" minOccurs="0" maxOccurs="1"/>
<xs:element name="zero-to-inf" type="xs:normalizedString" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="one-to-inf" type="xs:normalizedString" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:element name="repeat-nested">
<xs:complexType>
<xs:sequence>
<xs:element name="repeat-simple" type="repeat-simple" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="not-repeated" type="xs:normalizedString" minOccurs="1" maxOccurs="1"/>
<xs:element name="not-repeated" type="xs:normalizedString" minOccurs="1" maxOccurs="1" default="nr"/>
<xs:element name="repeat-simple-min-0-min1" type="repeat-min1" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="repeat-simple-min-1-min0" type="repeat-min0" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>

View File

@@ -138,6 +138,7 @@
<xs:element name="date_and_time_components">
<xs:complexType>
<xs:sequence>
<xs:element name="date_and_time" type="xs:datetime"/>
<xs:element name="date" type="xs:date"/>
<xs:element name="time" type="xs:time"/>
<xs:element name="day" type="xs:gDay"/>