The could use the dfdl:length property to on a complex parameters type, then 
use dfdl:occursCountKind="parsed" on the parameter type itself. Something like:


<xs:element name="parameterLength" type="xs:int" />

<xs:element name="parameters" dfdl:length="../parameterLength">

  <xs:complexType>

    <xs:sequence>

      <xs:element name="parameter" type="parameter_type" minOccurs="0" 
maxOccurs="unbounded" dfdl:occursCountKind="parsed" />

    </xs:sequence>

  </xs:complexType>

</xs:element>


________________________________
From: Kevin Moser <[email protected]>
Sent: Tuesday, May 28, 2019 3:14:53 PM
To: [email protected]
Subject: For loop or while loop

Working on schema and am hoping to get some assistance on writing schema to 
perform an iterative process.  The protocol contains a length of parameters 
field.  It does not contain the number of parameters.  I want to write the 
schema to handle a variable number of parameters until the length of parameters 
field is consumed (essentially a for loop or while loop).  Any suggestions?
Thanks, Kevin

Reply via email to