No attached PDF.

Removal of blanks from a number would normally be by way of DFDL "padding"
and "trimming" properties.

You need dfdl:textNumberJustification property, also textTrimKind,
textPadKind, textNumberPadCharacter.

You can also use textNumberPattern to indicate that a number may have
leading spaces or zeros, but this is mostly about output when those leading
zeros are required.

Padding on left == Right Justified
Padding on right == Left Justified
Padding around both sides = Center Justified.



On Tue, Mar 15, 2022 at 8:53 AM Attila Horvath <attila.j.horv...@gmail.com>
wrote:

> Ping... any assistance appreciated - thx
>
> ---------- Forwarded message ---------
> From: Attila Horvath <attila.j.horv...@gmail.com>
> Date: Mon, Mar 14, 2022 at 12:38 PM
> Subject: string to integer conversion w/ leading blanks fails
> To: <users@daffodil.apache.org>, <d...@daffodil.apache.org>
>
>
> ALCON
>
> Can someone pls suggest a way to convert string to integer if/when leading
> blanks are present?
>
> My attempts are failing - see attached pdf for more details.
>
> Thx in advance
>
> Attila
>

Reply via email to