[
https://issues.apache.org/jira/browse/DAFFODIL-2550?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18036230#comment-18036230
]
Mike Beckerle commented on DAFFODIL-2550:
-----------------------------------------
A few added notes:
Keep in mind that schemas that use _elements_ in different namespace s but
require prefix redefinitions because they reuse the same prefix for different
namespaces, are less important, and we could even adopt a policy of just
disallowing element prefix redefs as an SDE - again specifically and only for
elements.
We also could deprecate elementFormDefault="qualified".
The goal being to only have to sweep all prefix definitions to the root element
only. The algorithm would be simpler - gather all prefix defs for elements.
Look for prefix conflicts. SDE on any conflicts, otherwise associate the prefix
bindings with the root element only.
Upshot: reducing the effort and complexity we put into this namespace stuff,
given that people will want schemas to be JSON compatible (and everything else
compatible).
I've also come to believe that all the XML/XSD namespace stuff should have been
omitted from DFDL a long time ago, but the DFDL WG members (specifically, me)
did not really grok namespaces fully back then. Namespaces are not needed for
structured data. They are needed if you have two _markup_ _languages_ and want
to intermix them freely in a human-marked-up-document and they use the same
keywords. This is not a use case that has a variant in the realm of structured
data.
If we ever get to working on [https://github.com/OpenGridForum/DFDL/issues/70]
(Non-XSD-based alternate syntax for DFDL) we should really consider disallowing
element namespaces.
> xmlns="" not minimized away in two CLI tests.
> ---------------------------------------------
>
> Key: DAFFODIL-2550
> URL: https://issues.apache.org/jira/browse/DAFFODIL-2550
> Project: Daffodil
> Issue Type: Bug
> Components: Middle "End"
> Affects Versions: 3.2.0
> Reporter: Mike Beckerle
> Assignee: Steve Lawrence
> Priority: Major
> Fix For: 4.1.0
>
>
> Changes in [https://github.com/apache/daffodil/pull/600] clean up things a
> lot, but there is one mystery change in behavior.
> Two CLI tests now add an xmlns="" to an inner locally-declared element which
> has a unqualified name.
> This seems like incorrect namespace binding minimization, possibly.
> Rather than hold up the merge of PR 600 (which is a big change set, so needs
> to be merged real soon now) this ticket is to investigate this issue of the
> two CLI tests and the xmlns="" that seems unnecessary.
> Note that we've suspected there could be bugs in namespace binding
> minimization for a while now.
> The two CLI tests are:
> * test_CLI_Debugger_InfoHidden_1
> * test_CLI_Debugger_InfoHidden_2
>
>
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)