Steve Lawrence created DAFFODIL-3096:
----------------------------------------

             Summary: in expression, the type xs:unsignedLong cannot be 
converted to xs:unsignedInt
                 Key: DAFFODIL-3096
                 URL: https://issues.apache.org/jira/browse/DAFFODIL-3096
             Project: Daffodil
          Issue Type: Task
          Components: Front End
            Reporter: Steve Lawrence
             Fix For: 4.3.0


This schema:

{code:xml}
  <element name="root">
    <complexType>
      <sequence>
        <element name="foo" type="xs:unsignedLong" dfdl:lengthKind="delimited" 
dfdl:terminator="%NL;" />
        <element name="bar" type="xs:unsignedInt" dfdl:inputValueCalc="{ 
xs:unsignedInt(../foo) }" />
      </sequence>
    </complexType>
  </element>
{code}

Results in this error during compilation:

{code}
[error] Schema Definition Error: In expression xs:unsignedInt(../foo), the type 
xs:unsignedLong cannot be converted to xs:unsignedInt.
{code}

Note that this works if the types are xs:long and xs:int, seems to only be an 
issue with unsigned values. Other combinations fails as well, such as if foo is 
xs:integer. and bar is xs:unsignedInt



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to