[open-ils-commits] r9973 - trunk/Open-ILS/examples
svn at svn.open-ils.org
svn at svn.open-ils.org
Sun Jul 6 15:46:28 EDT 2008
Author: dbs
Date: 2008-07-06 15:46:24 -0400 (Sun, 06 Jul 2008)
New Revision: 9973
Modified:
trunk/Open-ILS/examples/fm_IDL.xsd
trunk/Open-ILS/examples/oils_persist.xsd
trunk/Open-ILS/examples/permacrud.xsd
Log:
Make current fm_IDL.xml example validate;
- but do we really want to allow maxOccurs=2 for context inside retrieve elements?
Modified: trunk/Open-ILS/examples/fm_IDL.xsd
===================================================================
--- trunk/Open-ILS/examples/fm_IDL.xsd 2008-07-06 16:28:59 UTC (rev 9972)
+++ trunk/Open-ILS/examples/fm_IDL.xsd 2008-07-06 19:46:24 UTC (rev 9973)
@@ -101,6 +101,7 @@
<xs:attribute ref="oils_persist:readonly"/>
<xs:attribute ref="oils_persist:tablename"/>
<xs:attribute ref="oils_persist:virtual"/>
+ <xs:attribute ref="oils_persist:field_safe"/>
<xs:attribute ref="reporter:core"/>
<xs:attribute ref="reporter:label"/>
</xs:complexType>
Modified: trunk/Open-ILS/examples/oils_persist.xsd
===================================================================
--- trunk/Open-ILS/examples/oils_persist.xsd 2008-07-06 16:28:59 UTC (rev 9972)
+++ trunk/Open-ILS/examples/oils_persist.xsd 2008-07-06 19:46:24 UTC (rev 9973)
@@ -37,5 +37,6 @@
<xs:attribute name="sequence"/>
<xs:attribute name="tablename"/>
<xs:attribute name="virtual" type="xs:boolean"/>
+<xs:attribute name="field_safe" type="xs:boolean"/>
</xs:schema>
Modified: trunk/Open-ILS/examples/permacrud.xsd
===================================================================
--- trunk/Open-ILS/examples/permacrud.xsd 2008-07-06 16:28:59 UTC (rev 9972)
+++ trunk/Open-ILS/examples/permacrud.xsd 2008-07-06 19:46:24 UTC (rev 9973)
@@ -22,9 +22,9 @@
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
- xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1"
+ xmlns:permacrud="http://open-ils.org/spec/opensrf/IDL/permacrud/v1"
targetNamespace="http://open-ils.org/spec/opensrf/IDL/permacrud/v1"
- elementFormDefault="unqualified"
+ elementFormDefault="qualified"
attributeFormDefault="unqualified"
>
@@ -34,66 +34,62 @@
<xs:element name="context" nillable="true">
<xs:complexType>
<xs:attribute name="link"/>
- <xs:attribute name="field"/>
- <xs:attribute name="global_requried"/>
+ <xs:attribute name="field" use="required"/>
+ <xs:attribute name="global_required"/>
</xs:complexType>
</xs:element>
<xs:element name="create" nillable="true">
<xs:complexType>
<xs:sequence>
- <xs:element ref="context" minOccurs="0" maxOccurs="1"/>
+ <xs:element ref="permacrud:context" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="permission" use="required"/>
<xs:attribute name="context_field"/>
+ <xs:attribute name="global_required"/>
</xs:complexType>
- <xs:attribute name="all_perms"/>
- <xs:attribute name="global_requried"/>
</xs:element>
<xs:element name="retrieve" nillable="true">
<xs:complexType>
<xs:sequence>
- <xs:element ref="context" minOccurs="0" maxOccurs="1"/>
+ <xs:element ref="permacrud:context" minOccurs="0" maxOccurs="2"/>
</xs:sequence>
<xs:attribute name="permission"/>
<xs:attribute name="context_field"/>
+ <xs:attribute name="global_required"/>
</xs:complexType>
- <xs:attribute name="all_perms"/>
- <xs:attribute name="global_requried"/>
</xs:element>
<xs:element name="update" nillable="true">
<xs:complexType>
<xs:sequence>
- <xs:element ref="context" minOccurs="0" maxOccurs="1"/>
+ <xs:element ref="permacrud:context" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="permission" use="required"/>
<xs:attribute name="context_field"/>
+ <xs:attribute name="global_required"/>
</xs:complexType>
- <xs:attribute name="all_perms"/>
- <xs:attribute name="global_requried"/>
</xs:element>
<xs:element name="delete" nillable="true">
<xs:complexType>
<xs:sequence>
- <xs:element ref="context" minOccurs="0" maxOccurs="1"/>
+ <xs:element ref="permacrud:context" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="permission" use="required"/>
<xs:attribute name="context_field"/>
+ <xs:attribute name="global_required"/>
</xs:complexType>
- <xs:attribute name="all_perms"/>
- <xs:attribute name="global_requried"/>
</xs:element>
<xs:element name="actions">
<xs:complexType>
<xs:sequence>
- <xs:element ref="create" minOccurs="0" maxOccurs="1"/>
- <xs:element ref="retrieve" minOccurs="0" maxOccurs="1"/>
- <xs:element ref="update" minOccurs="0" maxOccurs="1"/>
- <xs:element ref="delete" minOccurs="0" maxOccurs="1"/>
+ <xs:element ref="permacrud:create" minOccurs="0" maxOccurs="1"/>
+ <xs:element ref="permacrud:retrieve" minOccurs="0" maxOccurs="1"/>
+ <xs:element ref="permacrud:update" minOccurs="0" maxOccurs="1"/>
+ <xs:element ref="permacrud:delete" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
@@ -101,7 +97,7 @@
<xs:element name="permacrud">
<xs:complexType>
<xs:sequence>
- <xs:element ref="actions" minOccurs="1" maxOccurs="1"/>
+ <xs:element ref="permacrud:actions" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
More information about the open-ils-commits
mailing list