Author: lektran
Date: Sat Apr 19 18:06:23 2008 New Revision: 649867 URL: http://svn.apache.org/viewvc?rev=649867&view=rev Log: Updated all the schema defs where necessary Modified: ofbiz/site/dtds/entitymodel.xsd ofbiz/site/dtds/services.xsd ofbiz/site/dtds/widget-form.xsd ofbiz/site/dtds/widget-screen.xsd Modified: ofbiz/site/dtds/entitymodel.xsd URL: http://svn.apache.org/viewvc/ofbiz/site/dtds/entitymodel.xsd?rev=649867&r1=649866&r2=649867&view=diff ============================================================================== --- ofbiz/site/dtds/entitymodel.xsd (original) +++ ofbiz/site/dtds/entitymodel.xsd Sat Apr 19 18:06:23 2008 @@ -270,6 +270,28 @@ <xs:attributeGroup name="attlist.alias-all"> <xs:attribute type="xs:string" name="entity-alias" use="required"/> <xs:attribute type="xs:string" name="prefix"/> + <xs:attribute name="group-by" default="false"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="true"/> + <xs:enumeration value="false"/> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + <xs:attribute name="function"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="min"/> + <xs:enumeration value="max"/> + <xs:enumeration value="sum"/> + <xs:enumeration value="avg"/> + <xs:enumeration value="count"/> + <xs:enumeration value="count-distinct"/> + <xs:enumeration value="upper"/> + <xs:enumeration value="lower"/> + </xs:restriction> + </xs:simpleType> + </xs:attribute> </xs:attributeGroup> <xs:element name="exclude"> <xs:complexType> @@ -318,6 +340,19 @@ </xs:attribute> </xs:attributeGroup> <xs:element name="complex-alias"> + <xs:annotation> + <xs:documentation> + In every SELECT statement, the fields that are normally used are really defined to be expressions. + This means for example that you can supply an expression like (discountPercent * 100) in place of just a field name. + The complex-alias tag is the Ofbiz way to do this. + + The argument to the right of operator = can be any operator valid for that data type on the database system you are using. + For example, *, +, -, and / are commonly available mathematical operators (min, max, sum, avg, count, count-distinct, upper, lower) + You can also use any operator on any data type supported on the underlying database system including string and date operators. + complex-alias can be as complex as you need by adding nested complex-alias statements and complex-alias-field + can use the same functions (min, max, count, count-distinct, sum, avg, upper, and lower) as the alias tag. + </xs:documentation> + </xs:annotation> <xs:complexType> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element ref="complex-alias"/> Modified: ofbiz/site/dtds/services.xsd URL: http://svn.apache.org/viewvc/ofbiz/site/dtds/services.xsd?rev=649867&r1=649866&r2=649867&view=diff ============================================================================== --- ofbiz/site/dtds/services.xsd (original) +++ ofbiz/site/dtds/services.xsd Sat Apr 19 18:06:23 2008 @@ -120,9 +120,9 @@ </xs:restriction> </xs:simpleType> </xs:attribute> + <xs:attribute type="xs:int" name="semaphore-wait-seconds" default="300"/> + <xs:attribute type="xs:int" name="semaphore-sleep" default="500"/> </xs:attributeGroup> - <xs:attribute type="xs:int" name="semaphore-wait-seconds" default="300"/> - <xs:attribute type="xs:int" name="semaphore-sleep" default="500"/> <xs:element name="notification"> <xs:complexType> <xs:attributeGroup ref="attlist.notification"/> Modified: ofbiz/site/dtds/widget-form.xsd URL: http://svn.apache.org/viewvc/ofbiz/site/dtds/widget-form.xsd?rev=649867&r1=649866&r2=649867&view=diff ============================================================================== --- ofbiz/site/dtds/widget-form.xsd (original) +++ ofbiz/site/dtds/widget-form.xsd Sat Apr 19 18:06:23 2008 @@ -43,7 +43,8 @@ </xs:element> <xs:attributeGroup name="attlist.form"> <xs:attribute type="xs:string" name="name" use="required"/> - <xs:attribute name="type" use="required"> + <xs:attribute name="type"> + <xs:annotation><xs:documentation>The form type is always required unless you are extending another form.</xs:documentation></xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:enumeration value="single"> @@ -194,6 +195,14 @@ <xs:attribute type="xs:string" name="default-table-style"> <xs:annotation><xs:documentation>The default-table-style specifies the style to use in the table.</xs:documentation></xs:annotation> </xs:attribute> + <xs:attribute name="client-autocomplete-fields" default="true"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="true"/> + <xs:enumeration value="false"/> + </xs:restriction> + </xs:simpleType> + </xs:attribute> <!-- not sure this is such a good idea <xs:attribute type="xs:string" name="hidden-values-map-name"> <xs:annotation><xs:documentation>A map that contains hidden field name/value pairs. @@ -497,6 +506,7 @@ </xs:element> <xs:attributeGroup name="attlist.display"> <xs:attribute name="also-hidden" default="true"> + <xs:annotation><xs:documentation>If set to true, an hidden form field is also rendered, with the name of the field and its content.</xs:documentation></xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:enumeration value="true"/> @@ -544,6 +554,7 @@ </xs:simpleType> </xs:attribute> <xs:attribute name="also-hidden" default="true"> + <xs:annotation><xs:documentation>If set to true, an hidden form field is also rendered, with the name of the field and its content.</xs:documentation></xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:enumeration value="true"/> @@ -618,6 +629,14 @@ <xs:attribute type="xs:positiveInteger" name="size" default="25"/> <xs:attribute type="xs:positiveInteger" name="maxlength"/> <xs:attribute type="xs:string" name="default-value"/> + <xs:attribute name="client-autocomplete-field" default="true"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="true"/> + <xs:enumeration value="false"/> + </xs:restriction> + </xs:simpleType> + </xs:attribute> </xs:attributeGroup> <xs:element name="hidden" substitutionGroup="AllFields"> <xs:complexType> @@ -634,6 +653,7 @@ </xs:element> <xs:attributeGroup name="attlist.hyperlink"> <xs:attribute name="also-hidden" default="true"> + <xs:annotation><xs:documentation>If set to true, an hidden form field is also rendered, with the name of the field and its content.</xs:documentation></xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:enumeration value="true"/> @@ -694,6 +714,14 @@ <xs:attribute type="xs:string" name="target-parameter"> <xs:annotation><xs:documentation>The name of a field whose value is passed in as a parameter to the lookup target form. Can be a comma separated list.</xs:documentation></xs:annotation> </xs:attribute> + <xs:attribute name="client-autocomplete-field" default="true"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="true"/> + <xs:enumeration value="false"/> + </xs:restriction> + </xs:simpleType> + </xs:attribute> </xs:attributeGroup> <xs:element name="password" substitutionGroup="AllFields"> <xs:complexType> @@ -707,6 +735,14 @@ <xs:attribute type="xs:positiveInteger" name="size" default="25"/> <xs:attribute type="xs:positiveInteger" name="maxlength"/> <xs:attribute type="xs:string" name="default-value"/> + <xs:attribute name="client-autocomplete-field" default="true"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="true"/> + <xs:enumeration value="false"/> + </xs:restriction> + </xs:simpleType> + </xs:attribute> </xs:attributeGroup> <xs:element name="radio" substitutionGroup="AllFields"> <xs:complexType> @@ -733,6 +769,14 @@ <xs:attribute type="xs:positiveInteger" name="size" default="25"/> <xs:attribute type="xs:positiveInteger" name="maxlength"/> <xs:attribute type="xs:string" name="default-value"/> + <xs:attribute name="client-autocomplete-field" default="true"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="true"/> + <xs:enumeration value="false"/> + </xs:restriction> + </xs:simpleType> + </xs:attribute> </xs:attributeGroup> <xs:element name="reset" substitutionGroup="AllFields"> <xs:complexType/> @@ -753,6 +797,9 @@ </xs:simpleType> </xs:attribute> <xs:attribute type="xs:string" name="image-location"/> + <xs:attribute type="xs:string" name="background-submit-refresh-target"> + <xs:annotation><xs:documentation>This will submit the form in the background and refresh just this form and not the rest of the page. Note that the button-type must be button.</xs:documentation></xs:annotation> + </xs:attribute> </xs:attributeGroup> <xs:element name="text" substitutionGroup="AllFields"> <xs:complexType> @@ -774,6 +821,14 @@ </xs:restriction> </xs:simpleType> </xs:attribute> + <xs:attribute name="client-autocomplete-field" default="true"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="true"/> + <xs:enumeration value="false"/> + </xs:restriction> + </xs:simpleType> + </xs:attribute> </xs:attributeGroup> <xs:element name="textarea" substitutionGroup="AllFields"> <xs:complexType> @@ -834,6 +889,14 @@ <xs:enumeration value="contains"/> <xs:enumeration value="empty"/> <xs:enumeration value="notEqual"/> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + <xs:attribute name="client-autocomplete-field" default="true"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="true"/> + <xs:enumeration value="false"/> </xs:restriction> </xs:simpleType> </xs:attribute> Modified: ofbiz/site/dtds/widget-screen.xsd URL: http://svn.apache.org/viewvc/ofbiz/site/dtds/widget-screen.xsd?rev=649867&r1=649866&r2=649867&view=diff ============================================================================== --- ofbiz/site/dtds/widget-screen.xsd (original) +++ ofbiz/site/dtds/widget-screen.xsd Sat Apr 19 18:06:23 2008 @@ -754,6 +754,7 @@ <xs:attributeGroup name="attlist.container"> <xs:attribute type="xs:string" name="id"/> <xs:attribute type="xs:string" name="style"/> + <xs:attribute type="xs:string" name="auto-update-target"/> </xs:attributeGroup> <xs:element name="image" substitutionGroup="AllWidgets"> <xs:complexType mixed="true"> |
Free forum by Nabble | Edit this page |