Hi Roger, Error messages have schema locations. Are you sure that the error message wasn't about a specific choice branch having a dfdl:choiceBranchKey=" "? If the error message is actually talking about such a dfdl:choiceBranchKey attribute, it is telling you to replace that dfdl:choiceBranchKey=" " with dfdl:choiceBranchKey="%SP;" (that is, use a DFDL entity for that whitespace character).
John From: Roger L Costello <coste...@mitre.org> Sent: Friday, December 22, 2023 10:00 AM To: users@daffodil.apache.org Subject: EXT: How to use choiceDispatchKey when the key is a blank character? WARNING: This email originated from outside of GE. Please validate the sender's email address before clicking on links or attachments as they may not be safe. Hi Folks, I am reading a subsection code (1 character) into this element: <xs:element name="Subsection_Code" type="xs:string" dfdl:lengthKind="explicit" dfdl:length="1"/> Some subsection codes are the blank character. Then I use choiceDispatchKey on that element that holds the subsection code: <xs:choice dfdl:choiceDispatchKey="{Subsection_Code}"> I get this error message when I run my DFDL schema: Schema Definition Error: For choiceDispatchKey, the string ( ) must not contain any whitespace. Use DFDL Entities for whitespace characters. Is there a workaround? /Roger