[
https://issues.apache.org/jira/browse/DAFFODIL-2676?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Steve Lawrence reassigned DAFFODIL-2676:
----------------------------------------
Assignee: Mike McGann
> number constructors from string do not tolerate leading whitespace
> ------------------------------------------------------------------
>
> Key: DAFFODIL-2676
> URL: https://issues.apache.org/jira/browse/DAFFODIL-2676
> Project: Daffodil
> Issue Type: Bug
> Components: Back End
> Affects Versions: 3.3.0
> Reporter: Mike Beckerle
> Assignee: Mike McGann
> Priority: Major
> Labels: beginner
> Fix For: 3.5.0
>
>
> User reports that an expression xs:unsignedInt(str) where the str contains
> leading whitespace, fails with:
> {code:java}
> Unparse Error: Cannot convert ' 0' from String type to Long (Cannot conert
> to type long: for input string: " 0"){code}
> Note that this is an unparse error.
> The XPath specification says that when converting from string to other atomic
> simple types, whitespace normalization applies, which trims leading and
> trailing whitespace. So this should not fail.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)