<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16525" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=109430011-30082007>Hmmm...</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=109430011-30082007></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=109430011-30082007>I wasn't around for 'occursStopValueKind', so excuse me 
if I miss the point.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=109430011-30082007></SPAN></FONT>&nbsp;</DIV><FONT><SPAN 
class=109430011-30082007>
<DIV dir=ltr align=left><SPAN class=698220809-16082007><FONT face=Arial><FONT 
color=#0000ff><FONT size=2><SPAN class=109430011-30082007>Here's a 
</SPAN>question and a tentative answer<SPAN class=109430011-30082007> I was 
playing with recently:</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=698220809-16082007></SPAN><SPAN 
class=698220809-16082007></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV dir=ltr align=left><SPAN class=698220809-16082007><FONT face=Arial 
  color=#0000ff size=2>What's the difference between stopValue and 
  terminator?<BR>'terminator' can be used to scan a stream of characters or bits 
  without parsing elements<BR>'stopValue' can be used to scan a sequence of 
  parsed elements. Its datatype must be the same as the array 
  element.</FONT></SPAN></DIV></BLOCKQUOTE></SPAN></FONT>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=109430011-30082007>If I'm 
right, then Steve's example is invalid because "done" is not an integer. To make 
it valid, either:</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=109430011-30082007>&nbsp;&nbsp;&nbsp; - the stopValue must be an 'int' 
such as -1, or</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=109430011-30082007>&nbsp;&nbsp;&nbsp; - the out-of-band value "done" or 
"|done" must be a terminator for an enclosing construct as 
follows.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=109430011-30082007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT><SPAN class=109430011-30082007><FONT face=Arial color=#0000ff 
size=2>Change this:</FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=109430011-30082007><FONT 
color=#000000>&lt;element name="x" type="int" maxOccurs="unbounded" 
dfdl:occursSeparator="|" dfdl:occursKind="stopValue" dfdl:stopValue="done" 
dfdl:occursStopValueKind="literal" dfdl:representation="text"/&gt;<FONT 
face="Times New Roman" size=3> </FONT></FONT><BR>to this:</DIV></SPAN></FONT>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=109430011-30082007><FONT 
color=#000000>&lt;sequence dfdl:lengthKind="delimited" dfdl:terminator="|done" 
dfdl:applies="hereonly"&gt;</FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#000000 size=2><SPAN class=109430011-30082007><SPAN 
class=109430011-30082007><FONT color=#000000>&nbsp;&nbsp;&nbsp; &lt;element 
name="x" type="int" maxOccurs="unbounded" dfdl:occursSeparator="|" 
dfdl:occursKind="endOfData" dfdl:representation="text"/&gt;<FONT 
face="Times New Roman" size=3> </FONT></FONT><BR></SPAN></SPAN></FONT><FONT 
face=Arial color=#000000 size=2><SPAN 
class=109430011-30082007>&lt;/sequence&gt;</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=109430011-30082007>&nbsp;</DIV></SPAN></FONT>
<DIV><FONT face=Arial><FONT size=2><FONT color=#0000ff><FONT face=Arial 
size=2><SPAN class=109430011-30082007>If I'm wrong, then what is the correct 
answer to the question?</SPAN></FONT></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><FONT color=#0000ff><FONT face=Arial 
size=2><SPAN 
class=109430011-30082007></SPAN></FONT></FONT></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2><FONT color=#0000ff><FONT face=Arial 
size=2><SPAN 
class=109430011-30082007>---</SPAN></FONT></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><FONT color=#0000ff><FONT face=Arial 
size=2><SPAN 
class=109430011-30082007></SPAN></FONT></FONT></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2><FONT color=#0000ff><FONT face=Arial 
size=2><SPAN class=109430011-30082007>If we change the name of the property 
'stopValue', then I&nbsp;would&nbsp;find&nbsp;these candidates consistent with 
similar concepts elsewhere:</SPAN></FONT></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><FONT color=#0000ff><FONT face=Arial 
size=2><SPAN class=109430011-30082007>&nbsp;&nbsp;&nbsp; 
occursTerminator</SPAN></FONT></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><FONT color=#0000ff><FONT face=Arial 
size=2><SPAN class=109430011-30082007>&nbsp;&nbsp;&nbsp; 
occursTerminatorValue</SPAN></FONT></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><FONT color=#0000ff><FONT face=Arial 
size=2><SPAN class=109430011-30082007>&nbsp;&nbsp;&nbsp; 
terminatorValue</SPAN></FONT></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><FONT color=#0000ff><FONT face=Arial 
size=2><SPAN 
class=109430011-30082007></SPAN></FONT></FONT></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;Simon</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV><FONT face=Arial 
size=2></FONT><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT><BR>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> dfdl-wg-bounces@ogf.org 
  [mailto:dfdl-wg-bounces@ogf.org] <B>On Behalf Of </B>Mike 
  Beckerle<BR><B>Sent:</B> 29 August 2007 19:52<BR><B>To:</B> Steve 
  Hanson<BR><B>Cc:</B> dfdl-wg@ogf.org; 
  dfdl-wg-bounces@ogf.org<BR><B>Subject:</B> Re: [DFDL-WG] V3 of length/occurs 
  simplification proposal<BR></FONT><BR></DIV>
  <DIV></DIV><FONT face=Arial color=#0000ff size=2></FONT><FONT face=Arial 
  color=#0000ff size=2></FONT><FONT face=Arial color=#0000ff 
  size=2></FONT><BR><FONT face=sans-serif size=2>Seems like 
  occursStopValueKind="literal" only applies to representation="text". 
  </FONT><BR><BR><FONT face=sans-serif size=2>With that caveat, I think I agree 
  we need to be able to say </FONT><BR><BR><FONT face=sans-serif 
  size=2>&lt;element name="x" type="int" maxOccurs="unbounded" 
  dfdl:occursSeparator="|" dfdl:occursKind="stopValue" dfdl:stopValue="done" 
  dfdl:occursStopValueKind="literal" dfdl:representation="text"/&gt;</FONT> 
  <BR><BR><FONT face=sans-serif size=2>Then this would be valid 3 occurences for 
  element x.</FONT> <BR><BR><FONT face=sans-serif size=2>2|3|4|done</FONT> 
  <BR><BR><FONT face=sans-serif size=2>I think we shoudl rename dfdl:stopValue 
  to dfdl:occursStopValue for consistency. </FONT><BR><BR><BR><FONT 
  face=sans-serif size=2>Mike Beckerle<BR>STSM, Architect, Scalable 
  Computing<BR>IBM Software Group<BR>Information Platform and 
  Solutions<BR>Westborough, MA 01581<BR>direct: voice and FAX 
  508-599-7148<BR>assistant: Pam Riordan &nbsp; <BR>&nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;priordan@us.ibm.com <BR>&nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp;508-599-7046<BR><BR></FONT><BR><BR><BR>
  <TABLE width="100%">
    <TBODY>
    <TR vAlign=top>
      <TD width="40%"><FONT face=sans-serif size=1><B>Steve Hanson 
        &lt;smh@uk.ibm.com&gt;</B> </FONT>
        <P><FONT face=sans-serif size=1>08/29/2007 01:32 PM</FONT> </P>
      <TD width="59%">
        <TABLE width="100%">
          <TBODY>
          <TR vAlign=top>
            <TD>
              <DIV align=right><FONT face=sans-serif size=1>To</FONT></DIV>
            <TD><FONT face=sans-serif size=1>Mike 
              Beckerle/Worcester/IBM@IBMUS</FONT> 
          <TR vAlign=top>
            <TD>
              <DIV align=right><FONT face=sans-serif size=1>cc</FONT></DIV>
            <TD><FONT face=sans-serif size=1>dfdl-wg@ogf.org, 
              dfdl-wg-bounces@ogf.org</FONT> 
          <TR vAlign=top>
            <TD>
              <DIV align=right><FONT face=sans-serif size=1>Subject</FONT></DIV>
            <TD><FONT face=sans-serif size=1>Re: [DFDL-WG] V3 of length/occurs 
              simplification proposal</FONT></TR></TBODY></TABLE><BR>
        <TABLE>
          <TBODY>
          <TR vAlign=top>
            <TD>
            <TD></TR></TBODY></TABLE><BR></TR></TBODY></TABLE><BR><BR><BR><FONT 
  face=sans-serif size=2><BR>Mike - looking at an old level of the spec, we had 
  a occursStopValueKind property, with enums 'logical', 'literal' and 'missing'. 
  &nbsp;Analogous to nullvalueKInd property. &nbsp;I'm sure we want to handle 
  'missing' differently but the literal v logical distinction is required. How 
  are we proposing to cover this? <BR><BR>Regards, Steve<BR><BR>Steve 
  Hanson<BR>WebSphere Message Brokers<BR>Hursley, UK<BR>Internet: 
  smh@uk.ibm.com<BR>Phone (+44)/(0) 1962-815848</FONT><FONT size=3> 
  <BR><BR></FONT>
  <TABLE width="100%">
    <TBODY>
    <TR vAlign=top>
      <TD width="43%"><FONT face=sans-serif size=1><B>Mike Beckerle 
        &lt;beckerle@us.ibm.com&gt;</B> <BR>Sent by: 
        dfdl-wg-bounces@ogf.org</FONT><FONT size=3> </FONT>
        <P><FONT face=sans-serif size=1>29/08/2007 16:29</FONT><FONT size=3> 
        </FONT></P>
      <TD width="56%"><BR>
        <TABLE width="100%">
          <TBODY>
          <TR vAlign=top>
            <TD width="12%">
              <DIV align=right><FONT face=sans-serif size=1>To</FONT></DIV>
            <TD width="87%"><FONT face=sans-serif 
              size=1>dfdl-wg@ogf.org</FONT><FONT size=3> </FONT>
          <TR vAlign=top>
            <TD>
              <DIV align=right><FONT face=sans-serif size=1>cc</FONT></DIV>
            <TD>
          <TR vAlign=top>
            <TD>
              <DIV align=right><FONT face=sans-serif size=1>Subject</FONT></DIV>
            <TD><FONT face=sans-serif size=1>[DFDL-WG] V3 of length/occurs 
              simplification proposal</FONT></TR></TBODY></TABLE><BR><BR>
        <TABLE width="100%">
          <TBODY>
          <TR vAlign=top>
            <TD width="50%">
            <TD width="50%"></TR></TBODY></TABLE><BR></TR></TBODY></TABLE><BR><FONT 
  size=3><BR><BR></FONT><FONT face=sans-serif size=2><BR>Based on minutes from 
  last week's meeting I've updated to v3 the proposal for simplifying 
  length/occurs properties.</FONT><FONT size=3> </FONT>
  <P><FONT face=sans-serif size=2>Changes are marked with comments.</FONT><FONT 
  size=3> </FONT><TT><FONT size=2>--<BR>dfdl-wg mailing 
  list<BR>dfdl-wg@ogf.org<BR>http://www.ogf.org/mailman/listinfo/dfdl-wg</FONT></TT><FONT 
  size=3> </FONT><FONT face=sans-serif size=3><BR></FONT><FONT 
  size=3><BR></FONT><FONT face=sans-serif size=3><BR></FONT><FONT 
  size=3><BR></FONT>
  <HR>
  <FONT face=sans-serif size=2><I><BR></I></FONT>
  <P><FONT face=sans-serif size=2><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> </FONT>
  <P><FONT face=sans-serif size=3><BR></FONT><FONT size=3><BR><BR></FONT><FONT 
  face=sans-serif size=3><BR></FONT>
  <P></P></BLOCKQUOTE></BODY></HTML>