One way to do this is to make your choiceDispatchKey do the greater than 1 check and return a single branch key value that signifies greater than 1. For example, one way to do it is:

<choice dfdl:choiceDispatchKey="{ if (xs:int(Continuation_Record_Number) <= 1) then Continuation_Record_Number else '2' }">
    <sequence dfdl:choiceBranchKey="0 1">...</sequence>
    <sequence dfdl:choiceBranchKey="2">...</sequence>
  </choice>

The expression gets a bit more complicated if you expect Continuation_Record_Number might contain spaces, letters, or negative numbers, but that's the general idea.

On 2024-01-09 09:07 AM, Roger L Costello wrote:
Hi Folks,

How do I express “greater than 1” in a choiceBranchKey?

<xs:choicedfdl:choiceDispatchKey='{Continuation_Record_Number}'>
<xs:sequencedfdl:choiceBranchKey="0 1">
         …
</xs:sequence>
<xs:sequencedfdl:choiceBranchKey="HOW TO EXPRESS GREATER THAN 1 HERE?">
         …
</xs:sequence
</xs:choice>


Reply via email to