Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Consider the following (incorrect) DFDL snippet:
<xs:element name="root" dfdl:lengthKind="implicit">
<xs:complexType>
<xs:sequence>
<xs:element ref="a:a_element" />
<xs:element name="b" type="tns:b_type" dfdl:inputValueCalc="{ ../a_element }" />
</xs:sequence>
</xs:complexType>
</xs:element>
Note that the dfdl:inputValueCalc should specify the namespace of the element it is referring to "a:a_element".
In attempting to compile the above, Daffodil reports the error as:
[error] Schema Definition Error: No element corresponding to step {}a_element found. Possibilities for this step include: tns:a_element, {}b.
Following Daffodils advice, results in a more reasonable suggestion:
[error] Schema Definition Error: No element corresponding to step tns:a_element found,but elements with the same local name were found (a:a_element).Perhaps a prefix is incorrect or missing on the step name?
Schema needed to reproduce is attached. Reproduce with:
daffodil save-parser -s b.dfdl.xsd parser.bin