<br><font size=2 face="sans-serif">Mike</font>
<br>
<br><font size=2 face="sans-serif">I have added this to the spec doc with
some minor changes shown in attached.</font>
<br>
<br><font size=2 face="sans-serif">Two new questions </font>
<br>
<ol>
<li value=1><font size=2 face="sans-serif">I assume in/outvalueCalc are
not allow on arrays</font>
<li value=2><font size=2 face="sans-serif">dfdl:hidden prevents elements
appearing in the infoset on parsing but there isn't an equivalent to prevent
infoset elements appearing in the data stream on unparsing. We have assumed
that inputvalueCalc prevents output but is that always the case? (Steve
you need to add InputValueCalc to unparsing property precedence). If inputValueCalc
is sufficient to prevent output couldn't outputvalueCalc prevent input
rather than hidden?</font></ol>
<br>
<br><font size=2 face="sans-serif"><br>
Alan Powell<br>
<br>
MP 211, IBM UK Labs, Hursley, Winchester, SO21 2JN, England<br>
Notes Id: Alan Powell/UK/IBM email: alan_powell@uk.ibm.com
<br>
Tel: +44 (0)1962 815073
Fax: +44 (0)1962 816898<br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">From:</font>
<td><font size=1 face="sans-serif">"Mike Beckerle" <mbeckerle.dfdl@gmail.com></font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">To:</font>
<td><font size=1 face="sans-serif">Steve Hanson/UK/IBM@IBMGB</font>
<tr>
<td valign=top><font size=1 color=#5f5f5f face="sans-serif">Cc:</font>
<td><font size=1 face="sans-serif">dfdl-wg@ogf.org</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Date:</font>
<td><font size=1 face="sans-serif">09/04/2008 15:03</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Subject:</font>
<td><font size=1 face="sans-serif">Re: [DFDL-WG] DFDL: Calculated Values
section rewrite</font></table>
<br>
<hr noshade>
<br>
<br>
<br><font size=2 color=#000080 face="Arial"> </font>
<br><font size=2 color=#000080 face="Arial">Hmm. We’re in this situation
where DFDL is so rich with features that anything those features don’t
handle will by definition be an obscure corner case thereby hard to motivate.</font>
<br><font size=2 color=#000080 face="Arial"> </font>
<br><font size=2 color=#000080 face="Arial">I can change this example to
use three single byte binary integers instead of 6 packed decimal digits.
This is certainly a feasible binary data format, though it’s nothing I’ve
ever seen. It also makes the example orthogonal to the decimal changes,
so generally is more on point.</font>
<br><font size=2 color=#000080 face="Arial"> </font>
<br><font size=2 color=#000080 face="Arial">Attachment is new example plus
the other improvements suggested.</font>
<br><font size=2 color=#000080 face="Arial"> </font>
<div align=center>
<br>
<hr></div>
<br><font size=2 face="Tahoma"><b>From:</b> Steve Hanson [</font><a href=mailto:smh@uk.ibm.com><font size=2 face="Tahoma">mailto:smh@uk.ibm.com</font></a><font size=2 face="Tahoma">]
<b><br>
Sent:</b> Wednesday, April 09, 2008 9:29 AM<b><br>
To:</b> mbeckerle.dfdl@gmail.com<b><br>
Cc:</b> dfdl-wg@ogf.org<b><br>
Subject:</b> Re: [DFDL-WG] DFDL: Calculated Values section rewrite</font>
<br><font size=3 face="Times New Roman"> </font>
<br><font size=2 face="sans-serif"><br>
Comments from Ian and Steve:</font><font size=3 face="Times New Roman">
<br>
</font><font size=2 face="sans-serif"><br>
1) Is it a schema error if default/fixed attributes specified along with
dfdl:inputValueCalc and/or dfdl:outputValueCalc?</font><font size=3 face="Times New Roman">
<br>
</font><font size=2 face="sans-serif"><br>
2) 2D array.</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
- dfdl:occurrences() is not in the expression language in draft 031. Is
something missing from the language, or should the XPath count() function
be used here?</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
- $dfdl:occurrences - $ not needed</font><font size=3 face="Times New Roman">
</font><font size=2 face="sans-serif"><br>
- dfdl:outputValueCalc for 'ncols' - we think the else clause should be
'..\rows[1]\cols'</font><font size=3 face="Times New Roman"> <br>
</font><font size=2 face="sans-serif"><br>
3) PD date</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
- As an example, it's perhaps not a good one as we have decimalCalendarFormat
as a property of a decimal number, which is intended to do exactly this</font><font size=3 face="Times New Roman">
</font><font size=2 face="sans-serif"><br>
- As it stands, it will need updating to reflect latest decimal supplement</font><font size=3 face="Times New Roman">
</font><font size=2 face="sans-serif"><br>
<br>
Regards, Steve<br>
<br>
Steve Hanson</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
Programming Model Architect<br>
WebSphere Message Brokers<br>
Hursley, UK<br>
Internet: smh@uk.ibm.com<br>
Phone (+44)/(0) 1962-815848</font><font size=3 face="Times New Roman">
<br>
</font>
<p>
<table width=100%>
<tr valign=top>
<td width=46%><font size=1 face="sans-serif"><b>"Mike Beckerle"
<mbeckerle.dfdl@gmail.com></b> <br>
Sent by: dfdl-wg-bounces@ogf.org</font><font size=3 face="Times New Roman">
</font>
<p><font size=1 face="sans-serif">09/04/2008 02:44</font><font size=3 face="Times New Roman">
</font>
<p>
<br>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
mbeckerle.dfdl@gmail.com</font></div></table>
<br>
<td width=53%>
<br>
<table width=100%>
<tr valign=top>
<td width=11%>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td width=88%><font size=1 face="sans-serif">Alan Powell/UK/IBM@IBMGB</font><font size=3 face="Times New Roman">
</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">dfdl-wg@ogf.org, dfdl-wg-bounces@ogf.org</font><font size=3 face="Times New Roman">
</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [DFDL-WG] DFDL: Calculated Values
section rewrite</font></table>
<br><font size=3 face="Times New Roman"> </font>
<p>
<br>
<table>
<tr valign=top>
<td><font size=3 face="Times New Roman"> </font>
<td><font size=3 face="Times New Roman"> </font></table>
<br></table>
<br><font size=3 face="Times New Roman"><br>
<br>
</font><font size=2 color=#000080 face="Arial"><br>
</font><font size=3 face="Times New Roman"> </font><font size=2 color=#000080 face="Arial"><br>
I’ve attached a revised calculated value properties doc which incorporates
suggestions from Alan, specifically, there’s a new example, which is a
2-d array with nrows, ncols fields stored before it. I think this motivates
the connection between outputValueCalc, and number of occurrences and occurs
calculations nicely.</font><font size=3 face="Times New Roman"> </font><font size=2 color=#000080 face="Arial"><br>
</font><font size=3 face="Times New Roman"> </font><font size=2 color=#000080 face="Arial"><br>
…mikeb</font><font size=3 face="Times New Roman"> </font><font size=2 color=#000080 face="Arial"><br>
</font><font size=3 face="Times New Roman"> </font>
<div align=center>
<br><font size=3 face="Times New Roman"> </font>
<br>
<hr></div>
<br><font size=2 face="Tahoma"><b><br>
From:</b> Alan Powell [</font><a href=mailto:alan_powell@uk.ibm.com><font size=2 face="Tahoma">mailto:alan_powell@uk.ibm.com</font></a><font size=2 face="Tahoma">]
<b><br>
Sent:</b> Thursday, March 27, 2008 2:02 PM<b><br>
To:</b> mbeckerle.dfdl@gmail.com<b><br>
Cc:</b> dfdl-wg@ogf.org; dfdl-wg-bounces@ogf.org<b><br>
Subject:</b> Re: [DFDL-WG] DFDL: Calculated Values section rewrite</font><font size=3 face="Times New Roman">
<br>
</font><font size=2 face="sans-serif"><br>
<br>
Mike</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
<br>
A couple of comments on the using derived/representation nomenclature with
OutputValueCalc and a couple of minor corrections.</font><font size=3 face="Times New Roman">
</font><font size=2 face="sans-serif"><br>
<br>
However I thought the Length Prefix example a bit odd as I would have expected
a single HexBinary element rather than an array of bytes. <br>
<br>
<br>
Alan Powell<br>
<br>
MP 211, IBM UK Labs, Hursley, Winchester, SO21 2JN, England<br>
Notes Id: Alan Powell/UK/IBM email: alan_powell@uk.ibm.com
<br>
Tel: +44 (0)1962 815073
Fax: +44 (0)1962 816898</font>
<p>
<table width=100%>
<tr valign=top>
<td width=14%><font size=1 color=#5f5f5f face="sans-serif">From:</font><font size=3 face="Times New Roman">
</font>
<td width=85%><font size=1 face="sans-serif">"Mike Beckerle"
<mbeckerle.dfdl@gmail.com></font><font size=3 face="Times New Roman">
</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">To:</font><font size=3 face="Times New Roman">
</font>
<td><font size=1 face="sans-serif"><dfdl-wg@ogf.org></font><font size=3 face="Times New Roman">
</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Date:</font><font size=3 face="Times New Roman">
</font>
<td><font size=1 face="sans-serif">26/03/2008 16:39</font><font size=3 face="Times New Roman">
</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Subject:</font><font size=3 face="Times New Roman">
</font>
<td><font size=1 face="sans-serif">[DFDL-WG] DFDL: Calculated Values section
rewrite</font></table>
<p><font size=3 face="Times New Roman"><br>
</font>
<div align=center>
<br><font size=3 face="Times New Roman"> </font>
<br>
<hr noshade></div>
<br><font size=3 face="Times New Roman"><br>
<br>
</font><font size=2 face="Calibri"><br>
<br>
My deliverable for the next draft (32) was to revise the calculated values
section.</font><font size=3 face="Times New Roman"> <br>
</font><font size=2 face="Calibri"><br>
I have rewritten it and the draft is attached. </font><font size=3 face="Times New Roman"><br>
</font><font size=2 face="Calibri"><br>
Of note: I have removed the troublesome “outputLengthCalc” property,
as I no longer see a critical need for it. One of the examples computes
the number of occurrences for a byte array, and I think that mechanism
along with alignment is sufficient to handle the troublesome cases I was
considering where size of padding had to be dynamically computed.</font><font size=3 face="Times New Roman">
<br>
</font><font size=2 face="Calibri"><br>
The section now consists of a short table of definition, followed by illustrative
examples, however, I think this is fine. The semantics of inputValueCalc
and outputValueCalc aren’t really that complex. They can be described
in a paragraph. It is the motivation for them that is complicated, so I
think examples in the spec, while sometimes considered problematic, are
OK in this case.</font><font size=3 face="Times New Roman"> <br>
<br>
<br>
</font><font size=2 face="Calibri"><br>
[attachment "calculated-value-properties.doc" deleted by Alan
Powell/UK/IBM] </font><font size=2 face="Courier New">--<br>
dfdl-wg mailing list<br>
dfdl-wg@ogf.org</font><font size=3 color=blue face="Times New Roman"><u><br>
</u></font><a href="http://www.ogf.org/mailman/listinfo/dfdl-wg"><font size=2 color=blue face="Courier New"><u>http://www.ogf.org/mailman/listinfo/dfdl-wg</u></font></a><font size=3 face="Times New Roman">
</font>
<div align=center>
<br><font size=3 face="Times New Roman"> </font>
<br>
<hr></div>
<br><font size=3 face="Times New Roman"><br>
</font>
<p><font size=2 face="sans-serif"><i>Unless stated otherwise above:<br>
IBM United Kingdom Limited - Registered in England and Wales with number
741598. <br>
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6
3AU</i></font><font size=3 face="Times New Roman"> </font>
<p><font size=3 face="Times New Roman"><br>
<br>
</font><font size=2 face="Courier New"><br>
--<br>
dfdl-wg mailing list<br>
dfdl-wg@ogf.org<br>
</font><a href="http://www.ogf.org/mailman/listinfo/dfdl-wg"><font size=2 face="Courier New">http://www.ogf.org/mailman/listinfo/dfdl-wg</font></a><font size=3 face="Times New Roman">
</font><font size=3 face="sans-serif"><br>
<br>
</font>
<div align=center>
<br>
<hr></div>
<br><font size=3 face="Times New Roman"> </font>
<p><font size=2 face="sans-serif"><i>Unless stated otherwise above:<br>
IBM United Kingdom Limited - Registered in England and Wales with number
741598. <br>
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6
3AU</i></font><font size=3 face="Times New Roman"> </font>
<p><font size=3 face="sans-serif"><br>
</font><font size=3 face="Times New Roman"><br>
<br>
[attachment "calculated-value-properties-v3.doc" deleted by Alan
Powell/UK/IBM] </font><tt><font size=2>--<br>
dfdl-wg mailing list<br>
dfdl-wg@ogf.org<br>
</font></tt><a href="http://www.ogf.org/mailman/listinfo/dfdl-wg"><tt><font size=2>http://www.ogf.org/mailman/listinfo/dfdl-wg</font></tt></a>
<p>
<br><font size=2 face="sans-serif"><br>
</font>
<br><font size=2 face="sans-serif"><br>
</font>
<hr><font size=2 face="sans-serif"><br>
<i><br>
</i></font>
<p><font size=2 face="sans-serif"><i>Unless stated otherwise above:<br>
IBM United Kingdom Limited - Registered in England and Wales with number
741598. <br>
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6
3AU</i></font>
<p><font size=2 face="sans-serif"><br>
<br>
</font>
<br>
<br><font size=2 face="sans-serif"><br>
</font>