All
As requested I have updated Suman's
element and group reference examples for the new scoping rules.
It has highlighted some concerns
- We haven't really defined the
scoping rules for dfdl:ref but they are assumed to be 'merge with local
property definitions. Local takes precedence'
- dfdl:ref to defineFormat blocks
are very difficult to use with parameterization.
A dfdl:ref on an element/group reference probably has no effect. The properties
would need to be converted to dfdl:setVariable .
A dfdl:ref on a global element/group declaration is OK but any property
that needs to be overridden must be defined locally as a variable.
- There is no easy way to provide
a default for properties on global elements/groups that can be overridden.
Suman had done this in his examples.
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
----- Forwarded by Alan
Powell/UK/IBM on 23/09/2009 11:24 -----
From:
| Alan Powell/UK/IBM@IBMGB
|
To:
| dfdl-wg@ogf.org
|
Date:
| 07/09/2009 16:55
|
Subject:
| [DFDL-WG] New scoping rules |
All
Attached is the description of the new
DFDL scoping rules.
We did not discuss the rules for simpleType
derivations so I have assumed that it uses the same rules as simpleType
reference, namely that the properties are merged and there must not be
any duplicate properties specified.
I have removed most of the complicated
examples as they no longer apply.
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
--
dfdl-wg mailing list
dfdl-wg@ogf.org
http://www.ogf.org/mailman/listinfo/dfdl-wg
#### ogf-dfdl-new-scoping-rules-3.doc moved to MyAttachments
Repository V3.8 (Link)
on 16 September 2009 by Alan Powell.
#### ogf-dfdl-new-scoping-rules-3.doc has been re-attached
on 16 September 2009 by Alan Powell
#### ogf-dfdl-new-scoping-rules-3.doc
removed & duplicate added to MyAttachments Repository V3.8 (Link)
on 23 September 2009 by Alan Powell. Original attachment record is
here (Link).
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