Hi Folks,

If each element has an initiator:

<xs:element name="A" dfdl:initiator="A" ...
<xs:element name="B" dfdl:initiator="B" ...
<xs:element name="C" dfdl:initiator="C" ...

then the xs:sequence that surrounds the elements should have 
dfdl:initiatedContent="yes"

<xs:sequence dfdl:initiatedContent="yes">
    <xs:element name="A" dfdl:initiator="A" ...
    <xs:element name="B" dfdl:initiator="B" ...
    <xs:element name="C" dfdl:initiator="C" ...
</xs:sequence>

Okay, good.

But suppose that B and C are inside an element:

<xs:element name="A" dfdl:initiator="A" ...
<xs:element name="Wrapper">
    <xs:complexType>
        <xs:sequence>
            <xs:element name="B" dfdl:initiator="B" ...
            <xs:element name="C" dfdl:initiator="C" ...
        </xs:sequence>
    </xs:complexType>
</xs:element>

Is it legal to surround that whole thing with xs:sequence and 
dfdl:initiatedContent="yes"?

<xs:sequence dfdl:initiatedContent="yes">
    <xs:element name="A" dfdl:initiator="A" ...
    <xs:element name="Wrapper">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="B" dfdl:initiator="B" ...
                <xs:element name="C" dfdl:initiator="C" ...
            </xs:sequence>
        </xs:complexType>
    </xs:element>
</xs:sequence>

/Roger

Reply via email to