Schema object | DFDL annotation allowed | Notes |
Schema declaration | dfdl:format | Only within an enclosing dfd:defineFormat. |
Element declaration | dfdl:element | Just those properties allowed on elements |
Element reference | dfdl:element | Just those properties allowed on elements.
Overrides dfdl:element properties on global element |
Complex type definition | dfdl:complexType | Full dfdl:format properties.
For scoping purposes only. |
Simple type definition | dfdl:simpleType | Just those properties allowed on simple types. |
Sequence declaration | dfdl:sequence | Just those properties allowed on sequences. |
Choice declaration | dfdl:choice | Just those properties allowed on choices. |
Group reference | dfdl:group | Just those properties allowed on sequence/choice.
Overrides dfdl:sequence/dfdl:choice properties on global group sequence/choice model group |
An alternative as I previously wrote is to allow dfdl:sequence and dfdl:choice on a group reference.
Group reference (to sequence group) | dfdl:sequence | Just those properties allowed on sequence/choice.
Overrides dfdl:sequence properties on global group model sequence group |
Group reference (to choice group) | dfdl:choice | Just those properties allowed on sequence/choice.
Overrides dfdl:choice properties on global group model choice group |
Although this does not look as good visually,
it is worth bearing in mind section 22.2 of the spec:
22.2 Group Reference
A copy of the definition referenced
by a group reference is substituted inline for its declaration while combining
any DFDL format annotation elements associated with it as given in Section
ý10.5.
(TBD: xref to scoping?) Processing then proceeds as for an anonymous
group declaration.
Note:
The use of specialised annotations relies
on the removal of something that we had talked about but not yet reflected
in the spec - dfdl:format on global xsd:group definitions. The idea of
allowing this came about fairly recently when we changed the rules for
hidden objects. I was unhappy that embedded hidden xsd objects within
DFDL annotations would make them invisible to a schema validator, so dfdl:hidden
was changed to be a reference to a global group containing the hidden objects.
I suggested that we could also put scoping annotations on global groups
to support scoping within the hidden construct, it seemed a good idea at
the time, but it was not fully explored. Thinking it through, because the
global group effectively disappears when the reference is resolved, then
so does its annotations. I'm therefore happy to retract scoping annotations
on global groups if it makes specialised annotations work.
Regards
Steve Hanson
Programming Model Architect
WebSphere Message Brokers
Hursley, UK
Internet: smh@uk.ibm.com
Phone (+44)/(0) 1962-815848
From: | Steve Hanson/UK/IBM@IBMGB |
To: | Suman Kalia <kalia@ca.ibm.com> |
Cc: | dfdl-wg@ogf.org |
Date: | 02/03/2009 23:45 |
Subject: | Re: [DFDL-WG] Reducing the number of DFDL properties. |
Suman Kalia <kalia@ca.ibm.com>
02/03/2009 22:02 |
|
From: | Steve Hanson <smh@uk.ibm.com> |
To: | Suman Kalia/Toronto/IBM@IBMCA |
Cc: | dfdl-wg@ogf.org, "Dave Glick" <dglick@dracorp.com> |
Date: | 03/02/2009 12:45 PM |
Subject: | Re: [DFDL-WG] Reducing the number of DFDL properties. |
Suman Kalia <kalia@ca.ibm.com>
Sent by: dfdl-wg-bounces@ogf.org 02/03/2009 16:25 |
|
From: | "Dave Glick" <dglick@dracorp.com> |
To: | "Alan Powell" <alan_powell@uk.ibm.com>, <mbeckerle.dfdl@gmail.com> |
Cc: | dfdl-wg@ogf.org |
Date: | 03/02/2009 11:16 AM |
Subject: | Re: [DFDL-WG] Reducing the number of DFDL properties. |
From: | "Mike Beckerle" <mbeckerle.dfdl@gmail.com> |
To: | Alan Powell/UK/IBM@IBMGB |
Cc: | <dfdl-wg@ogf.org> |
Date: | 28/02/2009 19:38 |
Subject: | RE: Reducing the number of DFDL properties. |
Mike Beckerle | OGF DFDL
WG Co-Chair | CTO | Oco, Inc.
Tel: 781-810-2100 | 100 Fifth Ave., 4th Floor, Waltham MA 02451
| mbeckerle.dfdl@gmail.com
From: Alan Powell [mailto:alan_powell@uk.ibm.com]
Sent: Thursday, February 26, 2009 12:22 PM
To: mbeckerle.dfdl@gmail.com
Cc: dfdl-wg@ogf.org
Subject: Reducing the number of DFDL properties.
Mike
A number of people at IBM have become concerned at the number of properties
in DFDL and have identified a number of 'usability' properties that could
be dropped. They feel that we should be simplifying the properties wherever
possible and not introducing multiple ways of doing the same function without
very good reason.
The following are offered for consideration.
1. lengthKind='nullterminated'
This is just shorthand for lengthKind=delimited and terminator='%Null'.
It was felt this this is not even the most common terminator so why
have a special case?
2. trimKind
It is felt that there aren't any cases when you would want to pad but not
trim and vice versa so make padKind control both.
3. typeSubstitution.
Is this needed in DFDL v1?
Can you consider these before the call next week
Alan Powell
MP 211, IBM UK Labs, Hursley, Winchester, SO21 2JN, England
Notes Id: Alan Powell/UK/IBM email: alan_powell@uk.ibm.com
Tel: +44 (0)1962 815073
Fax: +44 (0)1962 816898
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
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
--
dfdl-wg mailing list
dfdl-wg@ogf.org
http://www.ogf.org/mailman/listinfo/dfdl-wg
--
dfdl-wg mailing list
dfdl-wg@ogf.org
http://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
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
--
dfdl-wg mailing list
dfdl-wg@ogf.org
http://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