You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Dave Thompson (Jira)" <ji...@apache.org> on 2020/09/23 11:47:00 UTC

[jira] [Closed] (DAFFODIL-1097) Need SDE (and someday warning) from ambiguous path expression

     [ https://issues.apache.org/jira/browse/DAFFODIL-1097?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dave Thompson closed DAFFODIL-1097.
-----------------------------------

Closing as a duplicate ticket per dev.

> Need SDE (and someday warning) from ambiguous path expression
> -------------------------------------------------------------
>
>                 Key: DAFFODIL-1097
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-1097
>             Project: Daffodil
>          Issue Type: Bug
>          Components: General
>            Reporter: Jessie Chab
>            Priority: Major
>              Labels: reverify
>             Fix For: 2.7.0
>
>
> I was able to create a schema where three elements on the same level had the same name. When passing the ambiguous path into the fn:local-name() function, the function believed it was being passed a multi-item sequence, since three elements exist with this name. Since the elements are not optional and they are not part of a choice, there should not be any ambiguity when parsing. However, part of our reasoning for moving away from XPath was that we do not need to traverse an entire tree to find all matching nodes for a path, because there will be at most one match. That is not the case in this scenario.
> See test local_name_06 in the following files:
> daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section23/dfdl_functions/Functions.tdml
> daffodil-test/src/test/scala-debug/edu/illinois/ncsa/daffodil/section23/dfdl_expressions/TestDFDLExpressionsDebug.scala
> daffodil-test/src/test/scala/edu/illinois/ncsa/daffodil/section23/dfdl_expressions/TestDFDLExpressions.scala



--
This message was sent by Atlassian Jira
(v8.3.4#803005)