Modified: ofbiz/site/dtds/widget-screen.xsd
URL: http://svn.apache.org/viewvc/ofbiz/site/dtds/widget-screen.xsd?rev=1597281&r1=1597280&r2=1597281&view=diff ============================================================================== --- ofbiz/site/dtds/widget-screen.xsd (original) +++ ofbiz/site/dtds/widget-screen.xsd Sat May 24 13:14:20 2014 @@ -28,49 +28,43 @@ under the License. <xs:element name="screen"> <xs:complexType> <xs:sequence> - <xs:element ref="section"/> + <xs:element ref="section" /> </xs:sequence> - <xs:attributeGroup ref="attlist.screen"/> + <xs:attribute type="xs:string" name="name" use="required" /> + <xs:attribute type="xs:string" name="transaction-timeout" use="optional"> + <xs:annotation> + <xs:documentation>Transaction timeout in seconds</xs:documentation> + </xs:annotation> + </xs:attribute> + <xs:attribute name="use-transaction" default="true"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="true" /> + <xs:enumeration value="false" /> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + <xs:attribute name="use-cache" default="false"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="true" /> + <xs:enumeration value="false" /> + </xs:restriction> + </xs:simpleType> + </xs:attribute> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.screen"> - <xs:attribute type="xs:string" name="name" use="required"/> - <xs:attribute type="xs:string" name="transaction-timeout" use="optional"> - <xs:annotation> - <xs:documentation>Transaction timeout in seconds</xs:documentation> - </xs:annotation> - </xs:attribute> - <xs:attribute name="use-transaction" default="true"> - <xs:simpleType> - <xs:restriction base="xs:token"> - <xs:enumeration value="true"/> - <xs:enumeration value="false"/> - </xs:restriction> - </xs:simpleType> - </xs:attribute> - <xs:attribute name="use-cache" default="false"> - <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="section" substitutionGroup="AllWidgets"> <xs:complexType> <xs:sequence> - <xs:element minOccurs="0" ref="condition"/> - <xs:element minOccurs="0" ref="actions"/> - <xs:element ref="widgets"/> - <xs:element minOccurs="0" ref="fail-widgets"/> + <xs:element minOccurs="0" ref="condition" /> + <xs:element minOccurs="0" ref="actions" /> + <xs:element minOccurs="0" ref="widgets" /> + <xs:element minOccurs="0" ref="fail-widgets" /> </xs:sequence> - <xs:attributeGroup ref="attlist.section"/> + <xs:attribute type="xs:string" name="name" /> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.section"> - <xs:attribute type="xs:string" name="name"/> - </xs:attributeGroup> <!-- ================ CONDITIONS ================ --> <xs:element name="AllConditionals" abstract="true"/> @@ -111,214 +105,184 @@ under the License. </xs:element> <xs:element name="if-service-permission" substitutionGroup="AllConditionals"> <xs:complexType> - <xs:attributeGroup ref="attlist.if-service-permission"/> + <xs:attribute type="xs:string" name="service-name" use="required" /> + <xs:attribute type="xs:string" name="resource-description" use="optional" /> + <xs:attribute type="xs:string" name="context-map" use="optional" /> + <xs:attribute name="main-action" use="optional"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="CREATE" /> + <xs:enumeration value="UPDATE" /> + <xs:enumeration value="DELETE" /> + <xs:enumeration value="VIEW" /> + </xs:restriction> + </xs:simpleType> + </xs:attribute> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.if-service-permission"> - <xs:attribute type="xs:string" name="service-name" use="required"/> - <xs:attribute type="xs:string" name="resource-description" use="optional"/> - <xs:attribute type="xs:string" name="context-map" use="optional"/> - <xs:attribute name="main-action" use="optional"> - <xs:simpleType> - <xs:restriction base="xs:token"> - <xs:enumeration value="CREATE"/> - <xs:enumeration value="UPDATE"/> - <xs:enumeration value="DELETE"/> - <xs:enumeration value="VIEW"/> - </xs:restriction> - </xs:simpleType> - </xs:attribute> - </xs:attributeGroup> <xs:element name="if-has-permission" substitutionGroup="AllConditionals"> <xs:complexType> - <xs:attributeGroup ref="attlist.if-has-permission"/> + <xs:attribute type="xs:string" name="permission" use="required" /> + <xs:attribute type="xs:string" name="action" /> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.if-has-permission"> - <xs:attribute type="xs:string" name="permission" use="required"/> - <xs:attribute type="xs:string" name="action"/> - </xs:attributeGroup> <xs:element name="if-entity-permission" substitutionGroup="AllConditionals"> <xs:complexType> <xs:choice minOccurs="0"> - <xs:element minOccurs="0" maxOccurs="1" ref="permission-condition-getter"/> - <xs:element minOccurs="0" maxOccurs="1" ref="related-role-getter"/> - <xs:element minOccurs="0" maxOccurs="1" ref="auxiliary-value-getter"/> + <xs:element minOccurs="0" maxOccurs="1" ref="permission-condition-getter" /> + <xs:element minOccurs="0" maxOccurs="1" ref="related-role-getter" /> + <xs:element minOccurs="0" maxOccurs="1" ref="auxiliary-value-getter" /> </xs:choice> - <xs:attributeGroup ref="attlist.if-entity-permission"/> + <xs:attribute type="xs:string" name="entity-name" use="required" /> + <xs:attribute type="xs:string" name="entity-id" use="required"> + <xs:annotation> + <xs:documentation>Can have multiple pipe separated values, but don't use spaces.</xs:documentation> + </xs:annotation> + </xs:attribute> + <xs:attribute type="xs:string" name="target-operation" use="required"> + <xs:annotation> + <xs:documentation>Can have multiple pipe separated values, but don't use spaces.</xs:documentation> + </xs:annotation> + </xs:attribute> + <xs:attribute name="display-fail-cond" default="false"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="true" /> + <xs:enumeration value="false" /> + </xs:restriction> + </xs:simpleType> + </xs:attribute> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.if-entity-permission"> - <xs:attribute type="xs:string" name="entity-name" use="required"/> - <xs:attribute type="xs:string" name="entity-id" use="required"> - <xs:annotation><xs:documentation>Can have multiple pipe separated values, but don't use spaces.</xs:documentation></xs:annotation> - </xs:attribute> - <xs:attribute type="xs:string" name="target-operation" use="required"> - <xs:annotation><xs:documentation>Can have multiple pipe separated values, but don't use spaces.</xs:documentation></xs:annotation> - </xs:attribute> - <xs:attribute name="display-fail-cond" default="false"> - <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="permission-condition-getter"> <xs:complexType> - <xs:attributeGroup ref="attlist.permission-condition-getter"/> + <xs:attribute type="xs:string" name="entity-name" /> + <xs:attribute type="xs:string" name="operation-field-name" /> + <xs:attribute type="xs:string" name="role-field-name" /> + <xs:attribute type="xs:string" name="auxiliary-field-name" /> + <xs:attribute type="xs:string" name="status-field-name" /> + <xs:attribute type="xs:string" name="privilege-field-name" /> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.permission-condition-getter"> - <xs:attribute type="xs:string" name="entity-name" /> - <xs:attribute type="xs:string" name="operation-field-name" /> - <xs:attribute type="xs:string" name="role-field-name" /> - <xs:attribute type="xs:string" name="auxiliary-field-name" /> - <xs:attribute type="xs:string" name="status-field-name" /> - <xs:attribute type="xs:string" name="privilege-field-name" /> - </xs:attributeGroup> <xs:element name="related-role-getter"> <xs:complexType> - <xs:attributeGroup ref="attlist.related-role-getter"/> + <xs:attribute type="xs:string" name="entity-name" /> + <xs:attribute type="xs:string" name="role-entity-name" /> + <xs:attribute type="xs:string" name="role-type-field-name" /> + <xs:attribute type="xs:string" name="party-field-name" /> + <xs:attribute type="xs:string" name="owner-entity-field-name" /> + <xs:attribute type="xs:string" name="entity-id-name" /> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.related-role-getter"> - <xs:attribute type="xs:string" name="entity-name" /> - <xs:attribute type="xs:string" name="role-entity-name" /> - <xs:attribute type="xs:string" name="role-type-field-name" /> - <xs:attribute type="xs:string" name="party-field-name" /> - <xs:attribute type="xs:string" name="owner-entity-field-name" /> - <xs:attribute type="xs:string" name="entity-id-name" /> - </xs:attributeGroup> <xs:element name="auxiliary-value-getter"> <xs:complexType> - <xs:attributeGroup ref="attlist.auxiliary-value-getter"/> + <xs:attribute type="xs:string" name="entity-name" /> + <xs:attribute type="xs:string" name="auxiliary-field-name" /> + <xs:attribute type="xs:string" name="entity-id-name" /> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.auxiliary-value-getter"> - <xs:attribute type="xs:string" name="entity-name" /> - <xs:attribute type="xs:string" name="auxiliary-field-name" /> - <xs:attribute type="xs:string" name="entity-id-name" /> - </xs:attributeGroup> <xs:element name="if-validate-method" substitutionGroup="AllConditionals"> - <xs:annotation><xs:documentation>Calls a static Java method that takes a String and returns a boolean.</xs:documentation></xs:annotation> + <xs:annotation> + <xs:documentation>Calls a static Java method that takes a String and returns a boolean.</xs:documentation> + </xs:annotation> <xs:complexType> - <xs:attributeGroup ref="attlist.if-validate-method"/> + <xs:attribute type="xs:string" name="field" use="required" /> + <xs:attribute type="xs:string" name="method" use="required" /> + <xs:attribute type="xs:string" name="class" default="org.ofbiz.base.util.UtilValidate" /> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.if-validate-method"> - <xs:attribute type="xs:string" name="field" use="required"/> - <xs:attribute type="xs:string" name="method" use="required"/> - <xs:attribute type="xs:string" name="class" default="org.ofbiz.base.util.UtilValidate"/> - </xs:attributeGroup> <xs:element name="if-compare" substitutionGroup="AllConditionals"> <xs:complexType> - <xs:attributeGroup ref="attlist.if-compare"/> + <xs:attribute name="field" type="xs:string" use="required" /> + <xs:attribute name="operator" use="required"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="less" /> + <xs:enumeration value="greater" /> + <xs:enumeration value="less-equals" /> + <xs:enumeration value="greater-equals" /> + <xs:enumeration value="equals" /> + <xs:enumeration value="not-equals" /> + <xs:enumeration value="contains" /> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + <xs:attribute name="value" type="xs:string" use="required" /> + <xs:attribute name="type" default="String"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="PlainString" /> + <xs:enumeration value="String" /> + <xs:enumeration value="BigDecimal" /> + <xs:enumeration value="Double" /> + <xs:enumeration value="Float" /> + <xs:enumeration value="Long" /> + <xs:enumeration value="Integer" /> + <xs:enumeration value="Date" /> + <xs:enumeration value="Time" /> + <xs:enumeration value="Timestamp" /> + <xs:enumeration value="Boolean" /> + <xs:enumeration value="Object" /> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + <xs:attribute type="xs:string" name="format" /> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.if-compare"> - <xs:attribute name="field" type="xs:string" use="required"/> - <xs:attribute name="operator" use="required"> - <xs:simpleType> - <xs:restriction base="xs:token"> - <xs:enumeration value="less"/> - <xs:enumeration value="greater"/> - <xs:enumeration value="less-equals"/> - <xs:enumeration value="greater-equals"/> - <xs:enumeration value="equals"/> - <xs:enumeration value="not-equals"/> - <xs:enumeration value="contains"/> - </xs:restriction> - </xs:simpleType> - </xs:attribute> - <xs:attribute name="value" type="xs:string" use="required"/> - <xs:attribute name="type" default="String"> - <xs:simpleType> - <xs:restriction base="xs:token"> - <xs:enumeration value="PlainString"/> - <xs:enumeration value="String"/> - <xs:enumeration value="BigDecimal"/> - <xs:enumeration value="Double"/> - <xs:enumeration value="Float"/> - <xs:enumeration value="Long"/> - <xs:enumeration value="Integer"/> - <xs:enumeration value="Date"/> - <xs:enumeration value="Time"/> - <xs:enumeration value="Timestamp"/> - <xs:enumeration value="Boolean"/> - <xs:enumeration value="Object"/> - </xs:restriction> - </xs:simpleType> - </xs:attribute> - <xs:attribute type="xs:string" name="format"/> - </xs:attributeGroup> <xs:element name="if-compare-field" substitutionGroup="AllConditionals"> <xs:complexType> - <xs:attributeGroup ref="attlist.if-compare-field"/> + <xs:attribute name="field" type="xs:string" use="required" /> + <xs:attribute name="operator" use="required"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="less" /> + <xs:enumeration value="greater" /> + <xs:enumeration value="less-equals" /> + <xs:enumeration value="greater-equals" /> + <xs:enumeration value="equals" /> + <xs:enumeration value="not-equals" /> + <xs:enumeration value="contains" /> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + <xs:attribute name="to-field" type="xs:string" /> + <xs:attribute name="type" default="String"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="PlainString" /> + <xs:enumeration value="String" /> + <xs:enumeration value="BigDecimal" /> + <xs:enumeration value="Double" /> + <xs:enumeration value="Float" /> + <xs:enumeration value="Long" /> + <xs:enumeration value="Integer" /> + <xs:enumeration value="Date" /> + <xs:enumeration value="Time" /> + <xs:enumeration value="Timestamp" /> + <xs:enumeration value="Boolean" /> + <xs:enumeration value="Object" /> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + <xs:attribute type="xs:string" name="format" /> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.if-compare-field"> - <xs:attribute name="field" type="xs:string" use="required"/> - <xs:attribute name="operator" use="required"> - <xs:simpleType> - <xs:restriction base="xs:token"> - <xs:enumeration value="less"/> - <xs:enumeration value="greater"/> - <xs:enumeration value="less-equals"/> - <xs:enumeration value="greater-equals"/> - <xs:enumeration value="equals"/> - <xs:enumeration value="not-equals"/> - <xs:enumeration value="contains"/> - </xs:restriction> - </xs:simpleType> - </xs:attribute> - <xs:attribute name="to-field" type="xs:string"/> - <xs:attribute name="type" default="String"> - <xs:simpleType> - <xs:restriction base="xs:token"> - <xs:enumeration value="PlainString"/> - <xs:enumeration value="String"/> - <xs:enumeration value="BigDecimal"/> - <xs:enumeration value="Double"/> - <xs:enumeration value="Float"/> - <xs:enumeration value="Long"/> - <xs:enumeration value="Integer"/> - <xs:enumeration value="Date"/> - <xs:enumeration value="Time"/> - <xs:enumeration value="Timestamp"/> - <xs:enumeration value="Boolean"/> - <xs:enumeration value="Object"/> - </xs:restriction> - </xs:simpleType> - </xs:attribute> - <xs:attribute type="xs:string" name="format"/> - </xs:attributeGroup> <xs:element name="if-regexp" substitutionGroup="AllConditionals"> <xs:complexType> - <xs:attributeGroup ref="attlist.if-regexp"/> + <xs:attribute type="xs:string" name="field" use="required" /> + <xs:attribute type="xs:string" name="expr" use="required" /> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.if-regexp"> - <xs:attribute type="xs:string" name="field" use="required"/> - <xs:attribute type="xs:string" name="expr" use="required"/> - </xs:attributeGroup> <xs:element name="if-empty" substitutionGroup="AllConditionals"> <xs:complexType> - <xs:attributeGroup ref="attlist.if-empty"/> + <xs:attribute type="xs:string" name="field" use="required" /> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.if-empty"> - <xs:attribute type="xs:string" name="field" use="required"/> - </xs:attributeGroup> <xs:element name="if-empty-section" substitutionGroup="AllConditionals"> <xs:complexType> - <xs:attributeGroup ref="attlist.if-empty-section"/> + <xs:attribute type="xs:string" name="section-name" use="required" /> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.if-empty-section"> - <xs:attribute type="xs:string" name="section-name" use="required"/> - </xs:attributeGroup> <!-- ================ ACTIONS ================ --> <xs:element name="AllActions" abstract="true"/> @@ -331,431 +295,390 @@ under the License. </xs:element> <xs:element name="set" substitutionGroup="AllActions"> <xs:complexType> - <xs:attributeGroup ref="attlist.set"/> + <xs:attribute type="xs:string" name="field" use="required" /> + <xs:attribute type="xs:string" name="from-field" /> + <xs:attribute type="xs:string" name="value" /> + <xs:attribute type="xs:string" name="default-value" /> + <xs:attribute name="global" 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="type"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="PlainString" /> + <xs:enumeration value="String" /> + <xs:enumeration value="BigDecimal" /> + <xs:enumeration value="Double" /> + <xs:enumeration value="Float" /> + <xs:enumeration value="List" /> + <xs:enumeration value="Long" /> + <xs:enumeration value="Integer" /> + <xs:enumeration value="Date" /> + <xs:enumeration value="Time" /> + <xs:enumeration value="Timestamp" /> + <xs:enumeration value="Boolean" /> + <xs:enumeration value="Object" /> + <xs:enumeration value="NewList" /> + <xs:enumeration value="NewMap" /> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + <xs:attribute name="to-scope" default="screen"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="screen" /> + <xs:enumeration value="user" /> + <xs:enumeration value="application" /> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + <xs:attribute name="from-scope" default="screen"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="screen" /> + <xs:enumeration value="user" /> + <xs:enumeration value="application" /> + </xs:restriction> + </xs:simpleType> + </xs:attribute> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.set"> - <xs:attribute type="xs:string" name="field" use="required"/> - <xs:attribute type="xs:string" name="from-field"/> - <xs:attribute type="xs:string" name="value"/> - <xs:attribute type="xs:string" name="default-value"/> - <xs:attribute name="global" 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="type"> - <xs:simpleType> - <xs:restriction base="xs:token"> - <xs:enumeration value="PlainString"/> - <xs:enumeration value="String"/> - <xs:enumeration value="BigDecimal"/> - <xs:enumeration value="Double"/> - <xs:enumeration value="Float"/> - <xs:enumeration value="List"/> - <xs:enumeration value="Long"/> - <xs:enumeration value="Integer"/> - <xs:enumeration value="Date"/> - <xs:enumeration value="Time"/> - <xs:enumeration value="Timestamp"/> - <xs:enumeration value="Boolean"/> - <xs:enumeration value="Object"/> - <xs:enumeration value="NewList"/> - <xs:enumeration value="NewMap"/> - </xs:restriction> - </xs:simpleType> - </xs:attribute> - <xs:attribute name="to-scope" default="screen"> - <xs:simpleType> - <xs:restriction base="xs:token"> - <xs:enumeration value="screen"/> - <xs:enumeration value="user"/> - <xs:enumeration value="application"/> - </xs:restriction> - </xs:simpleType> - </xs:attribute> - <xs:attribute name="from-scope" default="screen"> - <xs:simpleType> - <xs:restriction base="xs:token"> - <xs:enumeration value="screen"/> - <xs:enumeration value="user"/> - <xs:enumeration value="application"/> - </xs:restriction> - </xs:simpleType> - </xs:attribute> - </xs:attributeGroup> <xs:element name="property-map" substitutionGroup="AllActions"> <xs:complexType> - <xs:attributeGroup ref="attlist.property-map"/> + <xs:attribute type="xs:string" name="resource" use="required" /> + <xs:attribute type="xs:string" name="map-name" use="required" /> + <xs:attribute name="global" default="false"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="true" /> + <xs:enumeration value="false" /> + </xs:restriction> + </xs:simpleType> + </xs:attribute> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.property-map"> - <xs:attribute type="xs:string" name="resource" use="required"/> - <xs:attribute type="xs:string" name="map-name" use="required"/> - <xs:attribute name="global" default="false"> - <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="property-to-field" substitutionGroup="AllActions"> <xs:complexType> - <xs:attributeGroup ref="attlist.property-to-field"/> + <xs:attribute type="xs:string" name="resource" use="required" /> + <xs:attribute type="xs:string" name="property" use="required" /> + <xs:attribute type="xs:string" name="field" use="required" /> + <xs:attribute type="xs:string" name="default" /> + <xs:attribute name="no-locale" 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 type="xs:string" name="arg-list-name" /> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.property-to-field"> - <xs:attribute type="xs:string" name="resource" use="required"/> - <xs:attribute type="xs:string" name="property" use="required"/> - <xs:attribute type="xs:string" name="field" use="required"/> - <xs:attribute type="xs:string" name="default"/> - <xs:attribute name="no-locale" 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 type="xs:string" name="arg-list-name"/> - </xs:attributeGroup> <xs:element name="script" substitutionGroup="AllActions"> <xs:complexType> - <xs:attributeGroup ref="attlist.script"/> + <xs:attribute type="xs:string" name="location" use="required" /> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.script"> - <xs:attribute type="xs:string" name="location" use="required"/> - </xs:attributeGroup> <xs:element name="service" substitutionGroup="AllActions"> <xs:complexType> <xs:sequence> - <xs:element minOccurs="0" maxOccurs="unbounded" ref="field-map"/> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="field-map" /> </xs:sequence> - <xs:attributeGroup ref="attlist.service"/> + <xs:attribute type="xs:string" name="service-name" use="required" /> + <xs:attribute type="xs:string" name="result-map" /> + <xs:attribute type="xs:string" name="auto-field-map" default="true"> + <xs:annotation> + <xs:documentation>This can be "true", "false" or the name of a Map in the context to use as the source Map for the service context.</xs:documentation> + </xs:annotation> + </xs:attribute> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.service"> - <xs:attribute type="xs:string" name="service-name" use="required"/> - <xs:attribute type="xs:string" name="result-map"/> - <xs:attribute type="xs:string" name="auto-field-map" default="true"> - <xs:annotation><xs:documentation>This can be "true", "false" or the name of a Map in the context to use as the source Map for the service context.</xs:documentation></xs:annotation> - </xs:attribute> - </xs:attributeGroup> <xs:element name="entity-and" substitutionGroup="AllActions"> <xs:complexType> <xs:sequence> - <xs:element maxOccurs="unbounded" ref="field-map"/> - <xs:element minOccurs="0" maxOccurs="unbounded" ref="select-field"/> - <xs:element minOccurs="0" maxOccurs="unbounded" ref="order-by"/> + <xs:element maxOccurs="unbounded" ref="field-map" /> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="select-field" /> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="order-by" /> <xs:choice minOccurs="0"> - <xs:element ref="limit-range"/> - <xs:element ref="limit-view"/> - <xs:element ref="use-iterator"/> + <xs:element ref="limit-range" /> + <xs:element ref="limit-view" /> + <xs:element ref="use-iterator" /> </xs:choice> </xs:sequence> - <xs:attributeGroup ref="attlist.entity-and"/> + <xs:attribute type="xs:string" name="entity-name" use="required" /> + <xs:attribute name="use-cache" 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="filter-by-date" default="false"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="true" /> + <xs:enumeration value="false" /> + <xs:enumeration value="by-name" /> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + <xs:attribute type="xs:string" name="list" use="required" /> + <xs:attribute name="result-set-type" default="scroll"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="forward" /> + <xs:enumeration value="scroll" /> + </xs:restriction> + </xs:simpleType> + </xs:attribute> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.entity-and"> - <xs:attribute type="xs:string" name="entity-name" use="required"/> - <xs:attribute name="use-cache" 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="filter-by-date" default="false"> - <xs:simpleType> - <xs:restriction base="xs:token"> - <xs:enumeration value="true"/> - <xs:enumeration value="false"/> - <xs:enumeration value="by-name"/> - </xs:restriction> - </xs:simpleType> - </xs:attribute> - <xs:attribute type="xs:string" name="list" use="required"/> - <xs:attribute name="result-set-type" default="scroll"> - <xs:simpleType> - <xs:restriction base="xs:token"> - <xs:enumeration value="forward"/> - <xs:enumeration value="scroll"/> - </xs:restriction> - </xs:simpleType> - </xs:attribute> - </xs:attributeGroup> <xs:element name="entity-condition" substitutionGroup="AllActions"> <xs:complexType> <xs:sequence> <xs:choice minOccurs="0"> - <xs:element ref="condition-expr"/> - <xs:element ref="condition-list"/> - <xs:element ref="condition-object"/> + <xs:element ref="condition-expr" /> + <xs:element ref="condition-list" /> + <xs:element ref="condition-object" /> </xs:choice> - <xs:element minOccurs="0" ref="having-condition-list"/> - <xs:element minOccurs="0" maxOccurs="unbounded" ref="select-field"/> - <xs:element minOccurs="0" maxOccurs="unbounded" ref="order-by"/> + <xs:element minOccurs="0" ref="having-condition-list" /> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="select-field" /> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="order-by" /> <xs:choice minOccurs="0"> - <xs:element ref="limit-range"/> - <xs:element ref="limit-view"/> - <xs:element ref="use-iterator"/> + <xs:element ref="limit-range" /> + <xs:element ref="limit-view" /> + <xs:element ref="use-iterator" /> </xs:choice> </xs:sequence> - <xs:attributeGroup ref="attlist.entity-condition"/> + <xs:attribute type="xs:string" name="entity-name" use="required" /> + <xs:attribute name="use-cache" 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="filter-by-date" default="false"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="true" /> + <xs:enumeration value="false" /> + <xs:enumeration value="by-name" /> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + <xs:attribute name="distinct" 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 type="xs:string" name="delegator-name" /> + <xs:attribute type="xs:string" name="list" use="required" /> + <xs:attribute name="result-set-type" default="scroll"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="forward" /> + <xs:enumeration value="scroll" /> + </xs:restriction> + </xs:simpleType> + </xs:attribute> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.entity-condition"> - <xs:attribute type="xs:string" name="entity-name" use="required"/> - <xs:attribute name="use-cache" 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="filter-by-date" default="false"> - <xs:simpleType> - <xs:restriction base="xs:token"> - <xs:enumeration value="true"/> - <xs:enumeration value="false"/> - <xs:enumeration value="by-name"/> - </xs:restriction> - </xs:simpleType> - </xs:attribute> - <xs:attribute name="distinct" 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 type="xs:string" name="delegator-name"/> - <xs:attribute type="xs:string" name="list" use="required"/> - <xs:attribute name="result-set-type" default="scroll"> - <xs:simpleType> - <xs:restriction base="xs:token"> - <xs:enumeration value="forward"/> - <xs:enumeration value="scroll"/> - </xs:restriction> - </xs:simpleType> - </xs:attribute> - </xs:attributeGroup> <xs:element name="entity-one" substitutionGroup="AllActions"> <xs:complexType> <xs:sequence> - <xs:element minOccurs="0" maxOccurs="unbounded" ref="field-map"/> - <xs:element minOccurs="0" maxOccurs="unbounded" ref="select-field"/> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="field-map" /> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="select-field" /> </xs:sequence> - <xs:attributeGroup ref="attlist.entity-one"/> + <xs:attribute name="entity-name" type="xs:string" use="required" /> + <xs:attribute name="value-field" type="xs:string" use="required" /> + <xs:attribute name="use-cache" 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="auto-field-map" default="true"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="true" /> + <xs:enumeration value="false" /> + </xs:restriction> + </xs:simpleType> + </xs:attribute> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.entity-one"> - <xs:attribute name="entity-name" type="xs:string" use="required"/> - <xs:attribute name="value-field" type="xs:string" use="required"/> - <xs:attribute name="use-cache" 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="auto-field-map" 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="get-related-one" substitutionGroup="AllActions"> <xs:complexType> - <xs:attributeGroup ref="attlist.get-related-one"/> + <xs:attribute name="value-field" type="xs:string" use="required" /> + <xs:attribute name="relation-name" type="xs:string" use="required" /> + <xs:attribute name="use-cache" type="xs:string" default="false" /> + <xs:attribute name="to-value-field" type="xs:string" use="required" /> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.get-related-one"> - <xs:attribute name="value-field" type="xs:string" use="required"/> - <xs:attribute name="relation-name" type="xs:string" use="required"/> - <xs:attribute name="use-cache" type="xs:string" default="false"/> - <xs:attribute name="to-value-field" type="xs:string" use="required"/> - </xs:attributeGroup> <xs:element name="get-related" substitutionGroup="AllActions"> <xs:complexType> - <xs:attributeGroup ref="attlist.get-related"/> + <xs:attribute type="xs:string" name="value-field" use="required" /> + <xs:attribute type="xs:string" name="relation-name" use="required" /> + <xs:attribute type="xs:string" name="map" /> + <xs:attribute type="xs:string" name="order-by-list" /> + <xs:attribute type="xs:string" name="use-cache" default="false" /> + <xs:attribute type="xs:string" name="list" use="required" /> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.get-related"> - <xs:attribute type="xs:string" name="value-field" use="required"/> - <xs:attribute type="xs:string" name="relation-name" use="required"/> - <xs:attribute type="xs:string" name="map"/> - <xs:attribute type="xs:string" name="order-by-list"/> - <xs:attribute type="xs:string" name="use-cache" default="false"/> - <xs:attribute type="xs:string" name="list" use="required"/> - </xs:attributeGroup> <xs:element name="condition-list"> <xs:complexType> <xs:choice maxOccurs="unbounded"> - <xs:element ref="condition-expr"/> - <xs:element ref="condition-list"/> - <xs:element ref="condition-object"/> + <xs:element ref="condition-expr" /> + <xs:element ref="condition-list" /> + <xs:element ref="condition-object" /> </xs:choice> - <xs:attributeGroup ref="attlist.condition-list"/> + <xs:attribute name="combine" default="and"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="and" /> + <xs:enumeration value="or" /> + </xs:restriction> + </xs:simpleType> + </xs:attribute> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.condition-list"> - <xs:attribute name="combine" default="and"> - <xs:simpleType> - <xs:restriction base="xs:token"> - <xs:enumeration value="and"/> - <xs:enumeration value="or"/> - </xs:restriction> - </xs:simpleType> - </xs:attribute> - </xs:attributeGroup> <xs:element name="having-condition-list"> <xs:complexType> <xs:choice maxOccurs="unbounded"> - <xs:element ref="condition-expr"/> - <xs:element ref="condition-list"/> - <xs:element ref="condition-object"/> + <xs:element ref="condition-expr" /> + <xs:element ref="condition-list" /> + <xs:element ref="condition-object" /> </xs:choice> - <xs:attributeGroup ref="attlist.having-condition-list"/> + <xs:attribute name="combine" default="and"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="and" /> + <xs:enumeration value="or" /> + </xs:restriction> + </xs:simpleType> + </xs:attribute> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.having-condition-list"> - <xs:attribute name="combine" default="and"> - <xs:simpleType> - <xs:restriction base="xs:token"> - <xs:enumeration value="and"/> - <xs:enumeration value="or"/> - </xs:restriction> - </xs:simpleType> - </xs:attribute> - </xs:attributeGroup> <xs:element name="condition-expr"> <xs:complexType> - <xs:attributeGroup ref="attlist.condition-expr"/> + <xs:attribute type="xs:string" name="field-name" use="required" /> + <xs:attribute name="operator" default="equals"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="less" /> + <xs:enumeration value="greater" /> + <xs:enumeration value="less-equals" /> + <xs:enumeration value="greater-equals" /> + <xs:enumeration value="equals" /> + <xs:enumeration value="not-equals" /> + <xs:enumeration value="in" /> + <xs:enumeration value="not-in" /> + <xs:enumeration value="between" /> + <xs:enumeration value="like" /> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + <xs:attribute type="xs:string" name="from-field" /> + <xs:attribute type="xs:string" name="value" /> + <xs:attribute name="ignore-if-null" 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="ignore-if-empty" 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="ignore-case" 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="ignore" default="false"> + <xs:annotation> + <xs:documentation> + Ignore the condition if flag is true. + Defaults to false. + </xs:documentation> + </xs:annotation> + </xs:attribute> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.condition-expr"> - <xs:attribute type="xs:string" name="field-name" use="required"/> - <xs:attribute name="operator" default="equals"> - <xs:simpleType> - <xs:restriction base="xs:token"> - <xs:enumeration value="less"/> - <xs:enumeration value="greater"/> - <xs:enumeration value="less-equals"/> - <xs:enumeration value="greater-equals"/> - <xs:enumeration value="equals"/> - <xs:enumeration value="not-equals"/> - <xs:enumeration value="in"/> - <xs:enumeration value="not-in"/> - <xs:enumeration value="between"/> - <xs:enumeration value="like"/> - </xs:restriction> - </xs:simpleType> - </xs:attribute> - <xs:attribute type="xs:string" name="from-field"/> - <xs:attribute type="xs:string" name="value"/> - <xs:attribute name="ignore-if-null" 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="ignore-if-empty" 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="ignore-case" 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="ignore" default="false"> - <xs:annotation> - <xs:documentation> - Ignore the condition if flag is true. - Defaults to false. - </xs:documentation> - </xs:annotation> - </xs:attribute> - </xs:attributeGroup> <xs:element name="condition-object"> <xs:complexType> - <xs:attributeGroup ref="attlist.condition-object"/> + <xs:attribute type="xs:string" name="field" use="required" /> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.condition-object"> - <xs:attribute type="xs:string" name="field" use="required"/> - </xs:attributeGroup> <xs:element name="select-field"> <xs:complexType> - <xs:attributeGroup ref="attlist.select-field"/> + <xs:attribute type="xs:string" name="field-name" use="required" /> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.select-field"> - <xs:attribute type="xs:string" name="field-name" use="required"/> - </xs:attributeGroup> <xs:element name="order-by"> <xs:complexType> - <xs:attributeGroup ref="attlist.order-by"/> + <xs:attribute type="xs:string" name="field-name" use="required" /> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.order-by"> - <xs:attribute type="xs:string" name="field-name" use="required"/> - </xs:attributeGroup> <xs:element name="limit-range"> <xs:complexType> - <xs:attributeGroup ref="attlist.limit-range"/> + <xs:attribute name="start" type="xs:string" use="required"> + <xs:annotation> + <xs:documentation>Should resolve into a non-negative integer.</xs:documentation> + </xs:annotation> + </xs:attribute> + <xs:attribute name="size" type="xs:string" use="required"> + <xs:annotation> + <xs:documentation>Should resolve into a non-negative integer.</xs:documentation> + </xs:annotation> + </xs:attribute> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.limit-range"> - <xs:attribute name="start" type="xs:string" use="required"><xs:annotation><xs:documentation>Should resolve into a non-negative integer.</xs:documentation></xs:annotation></xs:attribute> - <xs:attribute name="size" type="xs:string" use="required"><xs:annotation><xs:documentation>Should resolve into a non-negative integer.</xs:documentation></xs:annotation></xs:attribute> - </xs:attributeGroup> <xs:element name="limit-view"> <xs:complexType> - <xs:attributeGroup ref="attlist.limit-view"/> + <xs:attribute name="view-index" type="xs:string" use="required"> + <xs:annotation> + <xs:documentation>Should resolve into a non-negative integer.</xs:documentation> + </xs:annotation> + </xs:attribute> + <xs:attribute name="view-size" type="xs:string" use="required"> + <xs:annotation> + <xs:documentation>Should resolve into a positive integer.</xs:documentation> + </xs:annotation> + </xs:attribute> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.limit-view"> - <xs:attribute name="view-index" type="xs:string" use="required"><xs:annotation><xs:documentation>Should resolve into a non-negative integer.</xs:documentation></xs:annotation></xs:attribute> - <xs:attribute name="view-size" type="xs:string" use="required"><xs:annotation><xs:documentation>Should resolve into a positive integer.</xs:documentation></xs:annotation></xs:attribute> - </xs:attributeGroup> - <xs:element name="use-iterator"> - <xs:complexType/> - </xs:element> + <xs:element name="use-iterator" /> <xs:element name="field-map"> <xs:complexType> - <xs:attributeGroup ref="attlist.field-map"/> + <xs:attribute type="xs:string" name="field-name" use="required" /> + <xs:attribute type="xs:string" name="from-field" /> + <xs:attribute type="xs:string" name="value" /> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.field-map"> - <xs:attribute type="xs:string" name="field-name" use="required"/> - <xs:attribute type="xs:string" name="from-field"/> - <xs:attribute type="xs:string" name="value"/> - </xs:attributeGroup> <!-- ================ WIDGETS ================ --> <xs:element name="AllWidgets" abstract="true"/> @@ -774,233 +697,309 @@ under the License. </xs:complexType> </xs:element> + <xs:element name="column-container" substitutionGroup="AllWidgets"> + <xs:complexType> + <xs:sequence> + <xs:element minOccurs="1" maxOccurs="unbounded" name="column"> + <xs:complexType> + <xs:sequence> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="AllWidgets" /> + </xs:sequence> + <xs:attribute type="xs:string" name="id" /> + <xs:attribute type="xs:string" name="style" /> + </xs:complexType> + </xs:element> + </xs:sequence> + <xs:attribute type="xs:string" name="id" /> + <xs:attribute type="xs:string" name="style" /> + </xs:complexType> + </xs:element> + <xs:element name="container" substitutionGroup="AllWidgets"> <xs:complexType> <xs:sequence> - <xs:element minOccurs="0" maxOccurs="unbounded" ref="AllWidgets"/> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="AllWidgets" /> </xs:sequence> - <xs:attributeGroup ref="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:annotation> + <xs:documentation>The URL to be called for periodic asynchronous area updates. + Some widget rendering environments support asynchronous updates.</xs:documentation> + </xs:annotation> + </xs:attribute> + <xs:attribute type="xs:string" name="auto-update-interval"> + <xs:annotation> + <xs:documentation>The auto-update interval, in seconds.</xs:documentation> + </xs:annotation> + </xs:attribute> </xs:complexType> </xs:element> - <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:annotation> - <xs:documentation>The URL to be called for periodic asynchronous area updates. - Some widget rendering environments support asynchronous updates.</xs:documentation> - </xs:annotation> - </xs:attribute> - <xs:attribute type="xs:integer" name="auto-update-interval"> - <xs:annotation> - <xs:documentation>The auto-update interval, in seconds.</xs:documentation> - </xs:annotation> - </xs:attribute> - </xs:attributeGroup> <xs:element name="horizontal-separator" substitutionGroup="AllWidgets"> <xs:complexType mixed="true"> - <xs:attributeGroup ref="attlist.horizontal-separator"/> + <xs:attribute type="xs:string" name="id" /> + <xs:attribute type="xs:string" name="name" /> + <xs:attribute type="xs:string" name="style" /> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.horizontal-separator"> - <xs:attribute type="xs:string" name="id"/> - <xs:attribute type="xs:string" name="name"/> - <xs:attribute type="xs:string" name="style"/> - </xs:attributeGroup> <xs:element name="image" substitutionGroup="AllWidgets"> <xs:complexType mixed="true"> - <xs:attributeGroup ref="attlist.image"/> + <xs:attribute type="xs:string" name="src" /> + <xs:attribute type="xs:string" name="id" /> + <xs:attribute type="xs:string" name="style" /> + <xs:attribute type="xs:string" name="width" /> + <xs:attribute type="xs:string" name="height" /> + <xs:attribute type="xs:string" name="border" /> + <xs:attribute type="xs:string" name="alt" /> + <xs:attribute name="url-mode" default="content"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="ofbiz" /> + <xs:enumeration value="content" /> + <xs:enumeration value="raw" /> + </xs:restriction> + </xs:simpleType> + </xs:attribute> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.image"> - <xs:attribute type="xs:string" name="src"/> - <xs:attribute type="xs:string" name="id"/> - <xs:attribute type="xs:string" name="style"/> - <xs:attribute type="xs:string" name="width"/> - <xs:attribute type="xs:string" name="height"/> - <xs:attribute type="xs:string" name="border"/> - <xs:attribute type="xs:string" name="alt"/> - <xs:attribute name="url-mode" default="content"> - <xs:simpleType> - <xs:restriction base="xs:token"> - <xs:enumeration value="ofbiz"/> - <xs:enumeration value="content"/> - <xs:enumeration value="raw"/> - </xs:restriction> - </xs:simpleType> - </xs:attribute> - </xs:attributeGroup> <xs:element name="label" substitutionGroup="AllWidgets"> <xs:complexType mixed="true"> - <xs:attributeGroup ref="attlist.label"/> + <xs:attribute type="xs:string" name="text" /> + <xs:attribute type="xs:string" name="id" /> + <xs:attribute type="xs:string" name="style" /> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.label"> - <xs:attribute type="xs:string" name="text"/> - <xs:attribute type="xs:string" name="id"/> - <xs:attribute type="xs:string" name="style"/> - </xs:attributeGroup> <xs:element name="link" substitutionGroup="AllWidgets"> <xs:complexType> <xs:sequence> - <xs:element minOccurs="0" maxOccurs="unbounded" ref="parameter"/> - <xs:element minOccurs="0" ref="image"/> - </xs:sequence> - <xs:attributeGroup ref="attlist.link"/> + <xs:element minOccurs="0" ref="auto-parameters-service"/> + <xs:element minOccurs="0" ref="auto-parameters-entity"/> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="parameter" /> + <xs:element minOccurs="0" ref="image" /> + </xs:sequence> + <xs:attribute type="xs:string" name="text" /> + <xs:attribute type="xs:string" name="id" /> + <xs:attribute type="xs:string" name="style" /> + <xs:attribute type="xs:string" name="target" /> + <xs:attribute type="xs:string" name="name" /> + <xs:attribute type="xs:string" name="target-window" /> + <xs:attribute type="xs:string" name="prefix" /> + <xs:attribute type="xs:string" name="width" /> + <xs:attribute type="xs:string" name="height" /> + <xs:attribute name="link-type" default="auto"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="auto"> + <xs:annotation> + <xs:documentation> + If selected the hidden-form type will be used if the url-mode is intra-app + and the request specified has an event, otherwise the anchor type will be used, + except if the ajax-window mode is specified. + </xs:documentation> + </xs:annotation> + </xs:enumeration> + <xs:enumeration value="anchor" /> + <xs:enumeration value="hidden-form" /> + <xs:enumeration value="ajax-window" /> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + <xs:attribute name="url-mode" default="intra-app"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="intra-app" /> + <xs:enumeration value="inter-app" /> + <xs:enumeration value="content" /> + <xs:enumeration value="plain" /> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + <xs:attribute name="full-path" 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="secure" 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="encode" default="false"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="true" /> + <xs:enumeration value="false" /> + </xs:restriction> + </xs:simpleType> + </xs:attribute> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.link"> - <xs:attribute type="xs:string" name="text"/> - <xs:attribute type="xs:string" name="id"/> - <xs:attribute type="xs:string" name="style"/> - <xs:attribute type="xs:string" name="target"/> - <xs:attribute type="xs:string" name="name"/> - <xs:attribute type="xs:string" name="target-window"/> - <xs:attribute type="xs:string" name="prefix"/> - <xs:attribute type="xs:string" name="width"/> - <xs:attribute type="xs:string" name="height"/> - <xs:attribute name="link-type" default="auto"> - <xs:simpleType> - <xs:restriction base="xs:token"> - <xs:enumeration value="auto"><xs:annotation><xs:documentation>If selected the hidden-form type will be used if the url-mode is intra-app and the request specified has an event, otherwise the anchor type will be used.</xs:documentation></xs:annotation></xs:enumeration> - <xs:enumeration value="anchor"/> - <xs:enumeration value="hidden-form"/> - <xs:enumeration value="ajax-window"/> - </xs:restriction> - </xs:simpleType> - </xs:attribute> - <xs:attribute name="url-mode" default="intra-app"> - <xs:simpleType> - <xs:restriction base="xs:token"> - <xs:enumeration value="intra-app"/> - <xs:enumeration value="inter-app"/> - <xs:enumeration value="content"/> - <xs:enumeration value="plain"/> - </xs:restriction> - </xs:simpleType> - </xs:attribute> - <xs:attribute name="full-path" 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="secure" 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="encode" default="false"> - <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="parameter"> <xs:complexType> - <xs:attributeGroup ref="attlist.parameter"/> + <xs:attribute type="xs:string" name="param-name" use="required" /> + <xs:attribute type="xs:string" name="from-field" /> + <xs:attribute type="xs:string" name="value" /> + </xs:complexType> + </xs:element> + <xs:element name="auto-parameters-service"> + <xs:complexType> + <xs:sequence> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="exclude"/> + </xs:sequence> + <xs:attribute name="service-name" type="xs:string" use="required"> + <xs:annotation> + <xs:documentation>The service name used to resolve parameters. If empty, use form defaultServiceName. Flexible string allowed.</xs:documentation> + </xs:annotation> + </xs:attribute> + <xs:attribute name="send-if-empty" default="true"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="true"/> + <xs:enumeration value="false"/> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + </xs:complexType> + </xs:element> + <xs:element name="auto-parameters-entity"> + <xs:complexType> + <xs:sequence> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="exclude"/> + </xs:sequence> + <xs:attribute name="entity-name" type="xs:string" use="required"> + <xs:annotation> + <xs:documentation>The entity name used to resolve parameters. If empty use form defaultEntityName attribute. Flexible string allowed.</xs:documentation> + </xs:annotation> + </xs:attribute> + <xs:attribute name="include" default="pk"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="pk"/> + <xs:enumeration value="nonpk"/> + <xs:enumeration value="all"/> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + <xs:attribute name="send-if-empty" default="true"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="true"/> + <xs:enumeration value="false"/> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + </xs:complexType> + </xs:element> + <xs:element name="exclude"> + <xs:complexType> + <xs:attribute name="field-name" type="xs:string" use="required"/> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.parameter"> - <xs:attribute type="xs:string" name="param-name" use="required"/> - <xs:attribute type="xs:string" name="from-field"/> - <xs:attribute type="xs:string" name="value"/> - </xs:attributeGroup> <xs:element name="screenlet" substitutionGroup="AllWidgets"> <xs:complexType> <xs:sequence> - <xs:element minOccurs="0" maxOccurs="unbounded" ref="AllWidgets"/> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="AllWidgets" /> </xs:sequence> - <xs:attributeGroup ref="attlist.screenlet"/> + <xs:attribute type="xs:string" name="title"> + <xs:annotation> + <xs:documentation>Title text to be placed in the screenlet title bar.</xs:documentation> + </xs:annotation> + </xs:attribute> + <xs:attribute name="id" type="xs:string" /> + <xs:attribute name="name" type="xs:string" /> + <xs:attribute name="collapsible" 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="initially-collapsed" type="xs:string" default="false"> + <xs:annotation> + <xs:documentation>When set to true, screenlet will be collapsed initially. Can be an expanded string to get the value from a variable. Defaults to false.</xs:documentation> + </xs:annotation> + </xs:attribute> + <xs:attribute name="save-collapsed" default="true"> + <xs:annotation> + <xs:documentation>When set to true, screenlet collapse status is saved as user preference. Defaults to true.</xs:documentation> + </xs:annotation> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="true" /> + <xs:enumeration value="false" /> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + <xs:attribute name="padded" default="true"> + <xs:annotation> + <xs:documentation>When set to true, screenlet content will be padded. Defaults to true.</xs:documentation> + </xs:annotation> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="true" /> + <xs:enumeration value="false" /> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + <xs:attribute type="xs:string" name="navigation-menu-name"> + <xs:annotation> + <xs:documentation>Name of the screenlet include-menu sub element that will be used for screenlet navigation.</xs:documentation> + </xs:annotation> + </xs:attribute> + <xs:attribute type="xs:string" name="navigation-form-name"> + <xs:annotation> + <xs:documentation>Name of the screenlet include-form sub element that will be used for screenlet navigation. The form's pagination menu will be included in the screenlet title bar.</xs:documentation> + </xs:annotation> + </xs:attribute> + <xs:attribute type="xs:string" name="tab-menu-name"> + <xs:annotation> + <xs:documentation>Name of the screenlet include-menu sub element that will be used for the screenlet tab bar.</xs:documentation> + </xs:annotation> + </xs:attribute> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.screenlet"> - <xs:attribute type="xs:string" name="title"> - <xs:annotation><xs:documentation>Title text to be placed in the screenlet title bar.</xs:documentation></xs:annotation> - </xs:attribute> - <xs:attribute name="id" type="xs:string"/> - <xs:attribute name="name" type="xs:string"/> - <xs:attribute name="collapsible" 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="initially-collapsed" type="xs:string" default="false"> - <xs:annotation><xs:documentation>When set to true, screenlet will be collapsed initially. Can be an expanded string to get the value from a variable. Defaults to false.</xs:documentation></xs:annotation> - </xs:attribute> - <xs:attribute name="save-collapsed" default="true"> - <xs:annotation><xs:documentation>When set to true, screenlet collapse status is saved as user preference. Defaults to true.</xs:documentation></xs:annotation> - <xs:simpleType> - <xs:restriction base="xs:token"> - <xs:enumeration value="true"/> - <xs:enumeration value="false"/> - </xs:restriction> - </xs:simpleType> - </xs:attribute> - <xs:attribute name="padded" default="true"> - <xs:annotation><xs:documentation>When set to true, screenlet content will be padded. Defaults to true.</xs:documentation></xs:annotation> - <xs:simpleType> - <xs:restriction base="xs:token"> - <xs:enumeration value="true"/> - <xs:enumeration value="false"/> - </xs:restriction> - </xs:simpleType> - </xs:attribute> - <xs:attribute type="xs:string" name="navigation-menu-name"> - <xs:annotation><xs:documentation>Name of the screenlet include-menu sub element that will be used for screenlet navigation.</xs:documentation></xs:annotation> - </xs:attribute> - <xs:attribute type="xs:string" name="navigation-form-name"> - <xs:annotation> - <xs:documentation>Name of the screenlet include-form sub element that will be used for screenlet navigation. The form's pagination menu will be included in the screenlet title bar.</xs:documentation> - </xs:annotation> - </xs:attribute> - <xs:attribute type="xs:string" name="tab-menu-name"> - <xs:annotation><xs:documentation>Name of the screenlet include-menu sub element that will be used for the screenlet tab bar.</xs:documentation></xs:annotation> - </xs:attribute> - </xs:attributeGroup> <!-- ================ WIDGETS - Includers ================ --> <xs:element name="content" substitutionGroup="AllWidgets"> <xs:complexType> - <xs:attributeGroup ref="attlist.content"/> + <xs:attribute type="xs:string" name="content-id" /> + <xs:attribute type="xs:string" name="dataresource-id" /> + <xs:attribute type="xs:string" name="edit-request" /> + <xs:attribute type="xs:string" name="edit-container-style" default="editWrapper" /> + <xs:attribute type="xs:string" name="enable-edit-name" default="enableEdit" /> + <xs:attribute name="xml-escape" 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 type="xs:string" name="width"> + <xs:annotation> + <xs:documentation>Used if non-html content to specify width of iframe.</xs:documentation> + </xs:annotation> + </xs:attribute> + <xs:attribute type="xs:string" name="height"> + <xs:annotation> + <xs:documentation>Used if non-html content to specify height of iframe.</xs:documentation> + </xs:annotation> + </xs:attribute> + <xs:attribute type="xs:string" name="border"> + <xs:annotation> + <xs:documentation>Used if non-html content to specify border of iframe.</xs:documentation> + </xs:annotation> + </xs:attribute> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.content"> - <xs:attribute type="xs:string" name="content-id"/> - <xs:attribute type="xs:string" name="dataresource-id"/> - <xs:attribute type="xs:string" name="edit-request"/> - <xs:attribute type="xs:string" name="edit-container-style" default="editWrapper"/> - <xs:attribute type="xs:string" name="enable-edit-name" default="enableEdit"/> - <xs:attribute name="xml-escape" 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 type="xs:string" name="width"> - <xs:annotation><xs:documentation>Used if non-html content to specify width of iframe.</xs:documentation></xs:annotation> - </xs:attribute> - <xs:attribute type="xs:string" name="height"> - <xs:annotation><xs:documentation>Used if non-html content to specify height of iframe.</xs:documentation></xs:annotation> - </xs:attribute> - <xs:attribute type="xs:string" name="border"> - <xs:annotation><xs:documentation>Used if non-html content to specify border of iframe.</xs:documentation></xs:annotation> - </xs:attribute> - </xs:attributeGroup> <xs:element name="decorator-screen" substitutionGroup="AllWidgets"> <xs:annotation> <xs:documentation> @@ -1010,161 +1009,139 @@ under the License. </xs:annotation> <xs:complexType> <xs:sequence> - <xs:element maxOccurs="unbounded" ref="decorator-section"/> + <xs:element maxOccurs="unbounded" ref="decorator-section" /> </xs:sequence> - <xs:attributeGroup ref="attlist.decorator-screen"/> + <xs:attribute type="xs:string" name="name" use="required" /> + <xs:attribute type="xs:string" name="location" /> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.decorator-screen"> - <xs:attribute type="xs:string" name="name" use="required"/> - <xs:attribute type="xs:string" name="location"/> - </xs:attributeGroup> <xs:element name="decorator-section"> <xs:complexType> <xs:sequence> - <xs:element minOccurs="0" maxOccurs="unbounded" ref="AllWidgets"/> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="AllWidgets" /> </xs:sequence> - <xs:attributeGroup ref="attlist.decorator-section"/> + <xs:attribute type="xs:string" name="name" use="required" /> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.decorator-section"> - <xs:attribute type="xs:string" name="name" use="required"/> - </xs:attributeGroup> <xs:element name="decorator-section-include" substitutionGroup="AllWidgets"> - <xs:annotation><xs:documentation>This is just a place holder to tell the renderer to include the parent container's contents at this point.</xs:documentation></xs:annotation> + <xs:annotation> + <xs:documentation>This is just a place holder to tell the renderer to include the parent container's contents at this point.</xs:documentation> + </xs:annotation> <xs:complexType> - <xs:attributeGroup ref="attlist.decorator-section-include"/> + <xs:attribute type="xs:string" name="name" use="required" /> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.decorator-section-include"> - <xs:attribute type="xs:string" name="name" use="required"/> - </xs:attributeGroup> <xs:element name="include-form" substitutionGroup="AllWidgets"> <xs:complexType> - <xs:attributeGroup ref="attlist.include-form"/> + <xs:attribute type="xs:string" name="name" use="required" /> + <xs:attribute type="xs:string" name="location" use="required" /> + <xs:attribute name="share-scope" default="false"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="true" /> + <xs:enumeration value="false" /> + </xs:restriction> + </xs:simpleType> + </xs:attribute> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.include-form"> - <xs:attribute type="xs:string" name="name" use="required"/> - <xs:attribute type="xs:string" name="location" use="required"/> - <xs:attribute name="share-scope" default="false"> - <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="include-menu" substitutionGroup="AllWidgets"> <xs:complexType> - <xs:attributeGroup ref="attlist.include-menu"/> + <xs:attribute type="xs:string" name="name" use="required" /> + <xs:attribute type="xs:string" name="location" use="required" /> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.include-menu"> - <xs:attribute type="xs:string" name="name" use="required"/> - <xs:attribute type="xs:string" name="location" use="required"/> - </xs:attributeGroup> <xs:element name="include-screen" substitutionGroup="AllWidgets"> <xs:complexType> - <xs:attributeGroup ref="attlist.include-screen"/> + <xs:attribute type="xs:string" name="name" use="required" /> + <xs:attribute type="xs:string" name="location" /> + <xs:attribute name="share-scope" default="false"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="true" /> + <xs:enumeration value="false" /> + </xs:restriction> + </xs:simpleType> + </xs:attribute> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.include-screen"> - <xs:attribute type="xs:string" name="name" use="required"/> - <xs:attribute type="xs:string" name="location"/> - <xs:attribute name="share-scope" default="false"> - <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="include-tree" substitutionGroup="AllWidgets"> <xs:complexType> - <xs:attributeGroup ref="attlist.include-tree"/> + <xs:attribute type="xs:string" name="name" use="required" /> + <xs:attribute type="xs:string" name="location" use="required" /> + <xs:attribute name="share-scope" default="false"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="true" /> + <xs:enumeration value="false" /> + </xs:restriction> + </xs:simpleType> + </xs:attribute> </xs:complexType> </xs:element> - <xs:attributeGroup name="attlist.include-tree"> - <xs:attribute type="xs:string" name="name" use="required"/> - <xs:attribute type="xs:string" name="location" use="required"/> - <xs:attribute name="share-scope" default="false"> - <xs:simpleType> - <xs:restriction base="xs:token"> [... 150 lines stripped ...] |
Free forum by Nabble | Edit this page |