[DFDL-WG] Clarification: attributes in DFDL schema that are used not for data, but for other non-DFDL annotation elements.

Mike Beckerle mbeckerle.dfdl at gmail.com
Tue Feb 20 18:18:28 EST 2018


Yes, files are attached.

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
<http://www.ogf.org/About/abt_policies.php>


On Tue, Feb 20, 2018 at 2:20 PM, Steve Hanson <smh at uk.ibm.com> wrote:

> 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*
> <http://www.ibm.com/developerworks/library/se-dfdl/index.html>
> Co-Chair, *OGF DFDL Working Group* <http://www.ogf.org/dfdl/>
> *smh at uk.ibm.com* <smh at uk.ibm.com>
> tel:+44-1962-815848 <+44%201962%20815848>
> mob:+44-7717-378890 <+44%207717%20378890>
> Note: I work Tuesday to Friday
>
>
>
> From:        Mike Beckerle <mbeckerle.dfdl at gmail.com>
> To:        dfdl-wg at 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 at 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*
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.tresys.com&d=DwMFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=AJa9ThEymJXYnOqu84mJuw&m=sc82YpTJe2zaMkOmRGSHfOxkxJcq0n_c9FjQ8aQefxE&s=Rxsta0Lr-rXWM16oYenXGrP7xH4Ti_yQTGKV06lYxp4&e=>
> Please note: Contributions to the DFDL Workgroup's email discussions are
> subject to the *OGF Intellectual Property Policy*
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.ogf.org_About_abt-5Fpolicies.php&d=DwMFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=AJa9ThEymJXYnOqu84mJuw&m=sc82YpTJe2zaMkOmRGSHfOxkxJcq0n_c9FjQ8aQefxE&s=uNKBF8PdzGH9PItZ16o0PqxPLYFR4naem91zZaseC1w&e=>
> --
>  dfdl-wg mailing list
>  dfdl-wg at 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ogf.org/pipermail/dfdl-wg/attachments/20180220/fc61e611/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: schemaWithOtherAnnotations.dfdl.xsd
Type: application/xml
Size: 1980 bytes
Desc: not available
URL: <http://www.ogf.org/pipermail/dfdl-wg/attachments/20180220/fc61e611/attachment-0002.xsd>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: otherAnnotationLanguage.xsd
Type: application/xml
Size: 1612 bytes
Desc: not available
URL: <http://www.ogf.org/pipermail/dfdl-wg/attachments/20180220/fc61e611/attachment-0003.xsd>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testImportOtherAnnotationSchema.tdml
Type: application/octet-stream
Size: 1594 bytes
Desc: not available
URL: <http://www.ogf.org/pipermail/dfdl-wg/attachments/20180220/fc61e611/attachment-0001.obj>


More information about the dfdl-wg mailing list