Mike, is it possible to post a cut-down
example that shows enough to give the error in Daffodil, and I'll see if
IBM DFDL gives a similar error.
Regards
Steve Hanson
IBM Hybrid Integration, Hursley, UK
Architect, IBM
DFDL
Co-Chair, OGF
DFDL Working Group
smh@uk.ibm.com
tel:+44-1962-815848
mob:+44-7717-378890
Note: I work Tuesday to Friday
From:
Mike Beckerle <mbeckerle.dfdl@gmail.com>
To:
dfdl-wg@ogf.org
Date:
20/02/2018 16:44
Subject:
[DFDL-WG] Clarification:
attributes in DFDL schema that are used not for data, but for other non-DFDL
annotation elements.
Sent by:
"dfdl-wg"
<dfdl-wg-bounces@ogf.org>
Interesting issue.
DFDL doesn't allow use of attributes.
But we have a user that has a DFDL schema to which they
also want to add other non-DFDL annotations.
Like DFDL itself, this other annotation language has a
variety of annotation elements that appear inside xs:appinfo blocks with
specific source attribute specified. A DFDL processor should be ignoring
these.
Those other annotation elements have attributes (as do
DFDL's annotation elements.)
But Daffodil issues a schema definition error on the attribute
declarations of this other annotation-language schema. This because it
has no way of telling if these attribute declarations are for use *only*
in annotations that it will ignore, or if they are used for modeling data.
Question is: Is it acceptable for a DFDL annotation to
just say "Nowhere in the extended schema - all files - can there be
any attribute declarations.", or do we need to accommodate attributes
and in fact every XSD construct that DFDL disallows, so long as they're
not being used to model data?
Really there's two questions here. First, does the DFDL
specification take (or need to take) a position on this. Second, what's
a practical choice for a DFDL implementation like Daffodil to take here.
...mikeb
Mike Beckerle | OGF DFDL Workgroup Co-Chair | Tresys Technology
| www.tresys.com
Please note: Contributions to the DFDL Workgroup's email
discussions are subject to the OGF
Intellectual Property Policy
--
dfdl-wg mailing list
dfdl-wg@ogf.org
https://urldefense.proofpoint.com/v2/url?u=https-3A__www.ogf.org_mailman_listinfo_dfdl-2Dwg&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=AJa9ThEymJXYnOqu84mJuw&m=sc82YpTJe2zaMkOmRGSHfOxkxJcq0n_c9FjQ8aQefxE&s=JkCAzi0EGJmPp-0RyMaiKEjpR4gkvCzyc60Q-qrVoaw&e=
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number
741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6
3AU