
Consider the following IMF headers: Message-ID: <CACQ76nh2VDypuwm1aHc1-s8ZmmyXg8XEosS6af6yurkVdT+8QQ@mail.gmail.com> Message-Id: <208E8372-A9D9-468A-9B4B-BD97ED28F64C@garriss.org> Notice the difference: Message-ID: vs Message-Id: Per the RFC, only the first is legal, but both are used in practice, and we'd like to allow either. In our DFDL schema, "Message-ID" is an initiator, but suddenly we have two alternate initiators for the same element. How we model this in DFDL? TIA

dfdl:initiator="Message-ID Message-Id" i.e., it's a whitespace separated list of alternatives. There's also a property called dfdl:ignoreCase="yes", but that would allow "mEssAge-iD" as well, which you probably don't want. On Wed, Feb 27, 2013 at 12:48 PM, Garriss Jr., James P. <jgarriss@mitre.org>wrote:
Consider the following IMF headers:****
** **
Message-ID: < CACQ76nh2VDypuwm1aHc1-s8ZmmyXg8XEosS6af6yurkVdT+8QQ@mail.gmail.com>****
Message-Id: <208E8372-A9D9-468A-9B4B-BD97ED28F64C@garriss.org>****
** **
Notice the difference: ** **
** **
Message-ID: ****
vs ****
Message-Id:****
** **
Per the RFC, only the first is legal, but both are used in practice, and we’d like to allow either. In our DFDL schema, “Message-ID” is an initiator, but suddenly we have two alternate initiators for the same element.****
** **
How we model this in DFDL?****
** **
TIA****
-- dfdl-wg mailing list dfdl-wg@ogf.org https://www.ogf.org/mailman/listinfo/dfdl-wg
-- Mike Beckerle | OGF DFDL Workgroup Co-Chair | Tresys Technology | www.tresys.com

Elegant. Thank you. From: Mike Beckerle [mailto:mbeckerle.dfdl@gmail.com] Sent: Wednesday, February 27, 2013 1:04 PM To: Garriss Jr., James P. Cc: dfdl-wg@ogf.org Subject: Re: [DFDL-WG] Alternate Initiators? dfdl:initiator="Message-ID Message-Id" i.e., it's a whitespace separated list of alternatives. There's also a property called dfdl:ignoreCase="yes", but that would allow "mEssAge-iD" as well, which you probably don't want. On Wed, Feb 27, 2013 at 12:48 PM, Garriss Jr., James P. <jgarriss@mitre.org<mailto:jgarriss@mitre.org>> wrote: Consider the following IMF headers: Message-ID: <CACQ76nh2VDypuwm1aHc1-s8ZmmyXg8XEosS6af6yurkVdT+8QQ@mail.gmail.com<mailto:CACQ76nh2VDypuwm1aHc1-s8ZmmyXg8XEosS6af6yurkVdT%2B8QQ@mail.gmail.com>> Message-Id: <208E8372-A9D9-468A-9B4B-BD97ED28F64C@garriss.org<mailto:208E8372-A9D9-468A-9B4B-BD97ED28F64C@garriss.org>> Notice the difference: Message-ID: vs Message-Id: Per the RFC, only the first is legal, but both are used in practice, and we'd like to allow either. In our DFDL schema, "Message-ID" is an initiator, but suddenly we have two alternate initiators for the same element. How we model this in DFDL? TIA -- dfdl-wg mailing list dfdl-wg@ogf.org<mailto:dfdl-wg@ogf.org> https://www.ogf.org/mailman/listinfo/dfdl-wg -- Mike Beckerle | OGF DFDL Workgroup Co-Chair | Tresys Technology | www.tresys.com<http://www.tresys.com>

See the property description in the DFDL spec for dfdl:initiator. It can be a space-separated list (there are several DFDL properties like this). Regards Steve Hanson Architect, Data Format Description Language (DFDL) Co-Chair, OGF DFDL Working Group IBM SWG, Hursley, UK smh@uk.ibm.com tel:+44-1962-815848 From: "Garriss Jr., James P." <jgarriss@mitre.org> To: "dfdl-wg@ogf.org" <dfdl-wg@ogf.org>, Date: 27/02/2013 17:48 Subject: [DFDL-WG] Alternate Initiators? Sent by: dfdl-wg-bounces@ogf.org Consider the following IMF headers: Message-ID: <CACQ76nh2VDypuwm1aHc1-s8ZmmyXg8XEosS6af6yurkVdT+8QQ@mail.gmail.com> Message-Id: <208E8372-A9D9-468A-9B4B-BD97ED28F64C@garriss.org> Notice the difference: Message-ID: vs Message-Id: Per the RFC, only the first is legal, but both are used in practice, and we’d like to allow either. In our DFDL schema, “Message-ID” is an initiator, but suddenly we have two alternate initiators for the same element. How we model this in DFDL? TIA-- dfdl-wg mailing list dfdl-wg@ogf.org https://www.ogf.org/mailman/listinfo/dfdl-wg 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
participants (3)
-
Garriss Jr., James P.
-
Mike Beckerle
-
Steve Hanson