Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DAFFODIL-2676

number constructors from string do not tolerate leading whitespace

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.3.0
    • 3.4.0
    • Back End
    • None

    Description

      User reports that an expression xs:unsignedInt(str) where the str contains leading whitespace, fails with:

      Unparse Error: Cannot convert '    0' from String type to Long (Cannot conert to type long: for input string: "    0")

      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. 

      Attachments

        Activity

          People

            Unassigned Unassigned
            mbeckerle Mike Beckerle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: