[
https://issues.apache.org/jira/browse/DAFFODIL-2917?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17877070#comment-17877070
]
Mike Beckerle commented on DAFFODIL-2917:
-----------------------------------------
This really needs to be a DFDL extension property (dfdlx) and be proposed for
inclusion in DFDL v2.0.
The suggestion above to determine this from elementFormDefault is probably a
bad idea as that controls the namespace into which local element declarations
are placed, not the way elements are referenced from path steps or any other
place.
XML Schema 1.1 (which is largely unused it seems as of August 2024) has
xpathDefaultNamespace attribute on the various XML schema constructs which take
an xpath. This serves a similar purpose to Daffodil's
unqualifiedPathStepPolicy, and strongly suggests this needs to be a DFDL
property, not just a API-specified tunable.
So we should deprecate this tunable, and add a dfdlx property to replace it.
Also we should consider if the preferDefaultNamespace enum value for
unqualifiedPathStepPolicy is needed or used. Just noNamespace and
defaultNamespace may be sufficient.
> tunable unqualifiedPathStepPolicy seems unnecessary - deprecate it
> -------------------------------------------------------------------
>
> Key: DAFFODIL-2917
> URL: https://issues.apache.org/jira/browse/DAFFODIL-2917
> Project: Daffodil
> Issue Type: Improvement
> Components: Front End
> Affects Versions: 3.8.0
> Reporter: Mike Beckerle
> Priority: Major
>
> The tunable unqualifiedPathStepPolicy seems unnecessary
> This policy can be based on the elementFormDefault of the lexically enclosing
> schema where the path appears.
> If the elementFormDefault is unqualified, then a path step with no prefix
> should be assumed to have no namespace.
> If the elementFormDefault is qualified, then a path step with no prefix
> should be assumed to be in the default namespace (if defined) and
> no-namespace if no default namespace is defined.
> These correspond to the unqualifiedPathStepPolicy values of noNamespace, and
> preferDefaultNamespace respectively. The default for
> unqualifiedPathStepPolicy is noNamespace which would correspond to the
> elementFormDefault default value of "unqualified".
> The third value of unqualifiedPathStepPolicy, which is "defaultNamespace" is
> problematic because the schema may have none.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)