I have uploaded a patch for the simple methods schema. In general, the top level attributes are converted to simpleType, and attributeGroups to complexType. Changed the following attribute name 1. ‘field’ to ‘fieldType’ 2. ‘level’ to ‘levelType' Denormalize the following attributeGroups 1. attlist.compare 2. attlist.compare-field Left attributeGroup ‘typeDefaultString’ unchanged, cos it doesn’t matter. Not in use, it seem. jleroux: we also fixed an issue with <xs:element name="field" type="fieldType"/> to <xs:element ref="field"/> In the patch And I found a small issue (not minilang related) in ExampleCompoundWidgets.xml - <sm:log message="CompoundWidgetsFunc runs" sm:level="info"/> + <sm:log message="CompoundWidgetsFunc runs" level="info"/> git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1750647 13f79535-47bb-0310-9956-ffa450edef68
30 lines
1.5 KiB
XML
30 lines
1.5 KiB
XML
<xs:schema
|
|
xmlns:sc="http://ofbiz.apache.org/Site-Conf"
|
|
xmlns:sm="http://ofbiz.apache.org/Simple-Method"
|
|
xmlns:wf="http://ofbiz.apache.org/Widget-Form"
|
|
xmlns:wt="http://ofbiz.apache.org/Widget-Tree"
|
|
xmlns:wm="http://ofbiz.apache.org/Widget-Menu"
|
|
xmlns:ws="http://ofbiz.apache.org/Widget-Screen"
|
|
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
|
elementFormDefault="qualified">
|
|
|
|
<xs:import schemaLocation="../../webapp/dtd/site-conf.xsd" namespace="http://ofbiz.apache.org/Site-Conf"/>
|
|
<xs:import schemaLocation="widget-menu.xsd" namespace="http://ofbiz.apache.org/Widget-Menu"/>
|
|
<xs:import schemaLocation="widget-screen.xsd" namespace="http://ofbiz.apache.org/Widget-Screen"/>
|
|
<xs:import schemaLocation="widget-form.xsd" namespace="http://ofbiz.apache.org/Widget-Form"/>
|
|
<xs:import schemaLocation="widget-tree.xsd" namespace="http://ofbiz.apache.org/Widget-Tree"/>
|
|
<xs:import schemaLocation="../../minilang/dtd/simple-methods.xsd" namespace="http://ofbiz.apache.org/Simple-Method"/>
|
|
|
|
<xs:element name="compound-widgets">
|
|
<xs:complexType>
|
|
<xs:all minOccurs="0" maxOccurs="1">
|
|
<xs:element ref="sc:site-conf"/>
|
|
<xs:element ref="wm:menus" minOccurs="0" maxOccurs="1"/>
|
|
<xs:element ref="ws:screens"/>
|
|
<xs:element ref="wt:trees" minOccurs="0" maxOccurs="1"/>
|
|
<xs:element ref="wf:forms"/>
|
|
<xs:element ref="sm:simple-methods"/>
|
|
</xs:all>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
</xs:schema> |