← Prev in month ← Prev in thread
Next in thread → Next in month →

CD-1 issue #50: redundant occurrence indicators in schema

From
Erik Rissanen <>
Date
2009-09-11T13:26:53+00:00
ID
Thread
CD-1 issue #50: redundant occurrence indicators in schema
The issue number refers to the XLS-sheet found in this email:
http://lists.oasis-open.org/archives/xacml/200909/msg00013.html

The commenter points out that the following schema fragment has 
redundant occurrence indicators:

<xs:complexType name="RequestType">
<xs:sequence minOccurs="0" maxOccurs="unbounded">
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<xs:element ref="xacml:RequestDefaults" minOccurs="0"/>
<xs:element ref="xacml:Attributes" maxOccurs="unbounded"/>
<xs:element ref="xacml:MultiRequests" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="ReturnPolicyIdList" type="xs:boolean"
use="required"/>
</xs:complexType>


The allows for instance multiple <RequestDefaults> elements, which is 
not intended I think.

I propose that we remove the redundant occurrence indicators and make 
the fragment like this:

<xs:complexType name="RequestType">
<xs:sequence>
<xs:element ref="xacml:RequestDefaults" minOccurs="0"/>
<xs:element ref="xacml:Attributes" maxOccurs="unbounded"/>
<xs:element ref="xacml:MultiRequests" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="ReturnPolicyIdList" type="xs:boolean"
use="required"/>
</xs:complexType>

Best regards,
Erik
← Prev in month ← Prev in thread
Next in thread → Next in month →