Re: string to integer conversion w/ leading blanks fails

2022-03-24 Thread Mike Beckerle
On Tue, Mar 15, 2022 at 3:41 PM Mike Beckerle >> > wrote: >> > >> > > No attached PDF. >> > > >> > > Removal of blanks from a number would normally be by way of DFDL >> > "padding" >> > > and "trimming" properties. >> > > &g

Re: string to integer conversion w/ leading blanks fails

2022-03-24 Thread Attila Horvath
es. > > > > > > 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

Re: string to integer conversion w/ leading blanks fails

2022-03-18 Thread Mike Beckerle
There are many people asking for various fixes to Daffodil. You can certainly get the priority of a particular fix/feature increased by advocating for it on dev or users mailing lists. But,... (my recruiting hat on now... you know what is coming...) you could also contribute the fix (and a test c

Re: string to integer conversion w/ leading blanks fails

2022-03-18 Thread Attila Horvath
Mike Appreciate the suggested workaround. I did incorporate/test your snippet per Mar 16, 2022 at 12:21 PM [below] w/ following anticipated results: [1]Satellite numbers w/ leading whitespace(s) yields lossless unparse results. [2]Satellite numbers w/ leading zero(s) or whitespace(s)+zero(s) yiel

Re: string to integer conversion w/ leading blanks fails

2022-03-18 Thread Attila Horvath
I know you're preparing to release 3.3.0. When do think this issue might be resolved? Which point release are you targeting? On a related subject, Daffodil implements a subset of XPATH function. Might dev-team consider implementing all XPATH functions in lieu of workarounds? Thx in advance - Att

Re: string to integer conversion w/ leading blanks fails

2022-03-16 Thread Steve Lawrence
>> > 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 Jus

Re: string to integer conversion w/ leading blanks fails

2022-03-16 Thread Attila Horvath
would normally be by way of DFDL > >> "padding" > >> > and "trimming" properties. > >> > > >> > You need dfdl:textNumberJustification property, also textTrimKind, > >> > textPadKind, textNumberPadCharacter. >

Re: string to integer conversion w/ leading blanks fails

2022-03-16 Thread Mike Beckerle
umber 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

Re: string to integer conversion w/ leading blanks fails

2022-03-16 Thread Mike Beckerle
; 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 appreciat

Re: string to integer conversion w/ leading blanks fails

2022-03-15 Thread Attila Horvath
> wrote: > > > Ping... any assistance appreciated - thx > > > > -- Forwarded message - > > From: Attila Horvath > > Date: Mon, Mar 14, 2022 at 12:38 PM > > Subject: string to integer conversion w/ leading blanks fails > > To: , >

Re: string to integer conversion w/ leading blanks fails

2022-03-15 Thread Mike Beckerle
Ping... any assistance appreciated - thx > > -- Forwarded message - > From: Attila Horvath > Date: Mon, Mar 14, 2022 at 12:38 PM > Subject: string to integer conversion w/ leading blanks fails > To: , > > > ALCON > > Can someone pls suggest a way t

Fwd: string to integer conversion w/ leading blanks fails

2022-03-15 Thread Attila Horvath
Ping... any assistance appreciated - thx -- Forwarded message - From: Attila Horvath Date: Mon, Mar 14, 2022 at 12:38 PM Subject: string to integer conversion w/ leading blanks fails To: , ALCON Can someone pls suggest a way to convert string to integer if/when leading blanks

string to integer conversion w/ leading blanks fails

2022-03-14 Thread Attila Horvath
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