Alan

Just to be clear - the box use case actually covers three sub-cases.

1) lengthKind="explicit" and length is hard-coded
2) lengthKind="explicit" and length is carried earlier in the data
3) lengthKind="prefix"

Regards

Steve Hanson
Programming Model Architect
WebSphere Message Brokers
Hursley, UK
Internet: smh@uk.ibm.com
Phone (+44)/(0) 1962-815848



Alan Powell/UK/IBM@IBMGB
Sent by: dfdl-wg-bounces@ogf.org

24/06/2009 09:09

To
Mike Beckerle <mbeckerle.dfdl@gmail.com>
cc
dfdl-wg@ogf.org
Subject
Re: [DFDL-WG] output value calc






Mike


We originally decided that lengthUnit=characters wasn't allowed on sequence and choice because of complications with encodings etc. Then when we removed lengthKind from sequence and choice it moved up to the complex element.
Remember that this is only to support the box use case and it seems unlikely you would specify the size of the box in characters.


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



From: Mike Beckerle <mbeckerle.dfdl@gmail.com>
To: Alan Powell/UK/IBM@IBMGB
Cc: dfdl-wg@ogf.org
Date: 23/06/2009 19:07
Subject: Re: [DFDL-WG] output value calc







I've viewed your comments and will incorporate them and resubmit.

One question is about complex types and text representation.

You mentioned we don't allow lengthKind="characters" on complex types. Seems to me if representation="text" it is quite likely that everything is given in lengthUnits="characters".

I'm not sure why not, though I have vague recollection of this restriction being discussed. Can you remind me?

...mike

On Tue, Jun 23, 2009 at 7:06 AM, Alan Powell <
alan_powell@uk.ibm.com> wrote:

Mike


Comments from our review in attached doc


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


From: Mike Beckerle <mbeckerle.dfdl@gmail.com>
To: dfdl-wg@ogf.org
Date: 19/06/2009 04:13
Subject: [DFDL-WG] output value calc









New draft of output value calc stuff. based on prior review (last week) which simplified and clarified things somewhat.

Examples are a simple and a complex type, with the same context - fits in a box that is rounded up in size to next multiple of 4 bytes.

There's some material in here also about bit strings and use of dfdl:length measured in bits. This was to cover truncation fully. It is not a comprehensive treatment of bit fields though.

All mention of variables and/or parameters is gone.

See what you think.

....mike

Mike Beckerle | OGF DFDL WG Co-Chair | CTO | Oco, Inc.
Tel:  781-810-2125  | 100 Fifth Ave., 4th Floor, Waltham MA 02451 |

mbeckerle.dfdl@gmail.com[attachment "outputValueCalc-and-variables-003.doc" deleted by Alan Powell/UK/IBM] --
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