[DFDL-WG] New scoping rules with Sumans exapmles.
Alan Powell
alan_powell at uk.ibm.com
Wed Sep 23 05:38:50 CDT 2009
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 at 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 at IBMGB
To:
dfdl-wg at 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 at 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 at ogf.org
http://www.ogf.org/mailman/listinfo/dfdl-wg
#### ogf-dfdl-new-scoping-rules-3.doc moved to MyAttachments Repository
V3.8 () 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 () on 23 September 2009 by Alan Powell.
Original attachment record is here ().
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/20090923/24a9e379/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ElementAndGroupRefComplexCaseNewScoping.xsd
Type: application/octet-stream
Size: 6608 bytes
Desc: not available
Url : http://www.ogf.org/pipermail/dfdl-wg/attachments/20090923/24a9e379/attachment-0002.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ogf-dfdl-new-scoping-rules-3.doc
Type: application/octet-stream
Size: 58368 bytes
Desc: not available
Url : http://www.ogf.org/pipermail/dfdl-wg/attachments/20090923/24a9e379/attachment-0003.obj
More information about the dfdl-wg
mailing list