[ 
https://issues.apache.org/jira/browse/DAFFODIL-2278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17114380#comment-17114380
 ] 

Mike Beckerle commented on DAFFODIL-2278:
-----------------------------------------

These schemas have discriminators:

(note: not all of these are publicly available)

In some cases this usage may be perfectly reasonable. But where backtracking 
can be avoided entirely using a dispatch, that is always preferable and is in 
fact more declarative than a bunch of discriminators which have to be inferred 
to be using the same mechanism in order to detect uniformity in the schema.

JPEG
IPFIX
BMP
icalendar
imf-icalendar-cse
jpeg2000
PNG
link16
mil-std-2045
vmf
vmf_s2s
nact
uscg_ucop_lh
stanag-5516 (unclear which of several schemas there. Only the "fast one" needs 
to worry about this.)
jreap
gif
NITF
SHP

That's a shorter list than I expected. 

> Rewrite example schemas to use choiceDispatchKey, not discriminators
> --------------------------------------------------------------------
>
>                 Key: DAFFODIL-2278
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2278
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Usability
>    Affects Versions: 2.5.0
>            Reporter: Mike Beckerle
>            Priority: Major
>             Fix For: 3.0.0
>
>
> Lots of example schemas are written using discriminators, because they 
> predated the choiceDispatchKey feature.
> These schemas should be revised to use choiceDispatchKey, which is a tighter 
> more declarative specification of a format, and also more efficient.
> See issue: [https://github.com/DFDLSchemas/PCAP/issues/4](DONE!) also, which 
> is about rewriting discriminators for PCAP specifically



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

Reply via email to