← Prev in month
← Prev in thread
Next in thread →
Next in month →
New issue: rules of assembly of the RP document
Section 4.4 of the WSRF-RP spec is fairly restrictive (normatively) in prescribing that only inline element refs can be used in the resource properties (RP) document schema. When working on WSDM we discovered that it was not quite reasonable as there may be a number of ways to create a valid RP schema without inlining the element refs or in addition to them. For example, XML Schema model groups could be used, type extensions/restrictions can be used, and any combination of these along with in-line elements refs can be used. Here is an illustration <xs:element name="a" .../> <xs:element name="b" .../> <xs:element name="c" .../> <xs:element name="d" .../> <xs:element name="e" .../> Now, one could do <xs:element name="rpdoc"> <xs:complexType> <xs:sequence> <xs:element ref="a" .../> <xs:element ref="b" .../> <xs:element ref="c" .../> <xs:element ref="d" .../> <xs:element ref="e" .../> </xs:sequence> </xs:complexType> </xs:element> Then also <xs:group name="cd"> <xs:sequence> <xs:element ref="c" .../> <xs:element ref="d" .../> </xs:sequence> </xs:group> <xs:element name="rpdoc"> <xs:complexType> <xs:sequence> <xs:element ref="a" .../> <xs:element ref="b" .../> <xs:group ref="cd"/> <xs:element ref="e" .../> </xs:sequence> </xs:complexType> </xs:element> Then also <xs:complexType name="ab"> <xs:sequence> <xs:element ref="a" .../> <xs:element ref="b" .../> </xs:sequence> </xs:complexType> <xs:element name="rpdoc"> <xs:complexType> <xs:complexContent> <xs:extension base="ab"> <xs:sequence> <xs:group ref="cd"/> <xs:element ref="e" .../> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType> </xs:element> -- Igor Sedukhin .. () -- (631) 342-4325 .. 1 CA Plaza, Islandia, NY 11749
← Prev in month
← Prev in thread
Next in thread →
Next in month →