Yeah, when a DFDL property value takes a whitespace separated string or a string that cannot contain whitespace, yet you want to supply it's value from data, which might use whitespace characters in the value, there is a function
dfdl:encodeDFDLEntities($arg) If the $arg was say, a space character " ", that will be replaced by a DFDL string literal "%SP;" On Fri, Dec 22, 2023 at 1:01 PM Roger L Costello <coste...@mitre.org> wrote: > 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 >