<br><font size=2 face="sans-serif">Mike</font>
<br>
<br><font size=2 face="sans-serif">A couple more comments:</font>
<br>
<br><font size=2 face="sans-serif">- I think that declaring a targetNamespace
without binding it to a prefix, coupled with binding the empty prefix &quot;xmlns&quot;
to the xsd subset namespace, might cause problems. </font>
<br>
<br><font size=2 face="sans-serif">- I think the two 'sep' variables should
have a default value, then the absolute and relative xsds could be used
in their own right, without envelope.</font>
<br>
<br><font size=2 face="sans-serif">Here's my simpler version of the example
so far, look in the 'markup' folder. Changes made implement my various
comments, plus assign the 'sep' and 'msgKind' variables the same simple
type as I've created for the corresponding elements (part of action 028).
More to come.</font>
<br>
<br>
<br>
<br><font size=2 face="sans-serif">Regards<br>
<br>
Steve Hanson<br>
Programming Model Architect<br>
WebSphere Message Brokers<br>
Hursley, UK<br>
Internet: smh@uk.ibm.com<br>
Phone (+44)/(0) 1962-815848</font>
<br><font size=1 color=#800080 face="sans-serif">----- Forwarded by Steve
Hanson/UK/IBM on 27/05/2009 17:38 -----</font>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Steve Hanson/UK/IBM</b></font>
<p><font size=1 face="sans-serif">27/05/2009 11:39</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">mbeckerle.dfdl@gmail.com</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>
<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] schemas and variables
example (envelope &amp; payloads)</font><a href=Notes://D06ML070/802563ED00496501/38D46BF5E8F08834852564B500129B2C/42B40372C42580D8802575BE00641521>Link</a></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br><font size=2 face="sans-serif">Mike</font>
<br>
<br><font size=2 face="sans-serif">Some comments on your example (note
I used the updated .zip in your other mail). </font>
<br>
<br><font size=2 face="sans-serif">- The number of variables make it harder
than it needs to be to understand - see later comments.</font>
<br>
<br><font size=2 face="sans-serif">- I think it would have been clearer
if &nbsp;the setting of 'sep' and 'msgKind' was symmetric, I would set
the two 'sep' variables on the 'dirPathSep' element.</font>
<br>
<br><font size=2 face="sans-serif">- The encoding could be constant to
makes things simpler.</font>
<br>
<br><font size=2 face="sans-serif">- It would have helped if &nbsp;you
had defined 'msgKindType' simple type with enums 'A' and 'R', and a 'dirPathSep'
simple type with enums '/' and '\'.</font>
<br>
<br><font size=2 face="sans-serif">- For this example, it would be clearer
if 'dirPathSep' and 'msgKind' were not set via outputValueCalc and their
values were just provided by the infoset. Given that they are not hidden
this makes more sense. If you want to set them using outputValueCalc then
I would suggest that you make the entire header hidden.</font>
<br>
<br><font size=2 face="sans-serif">- I'm not sure that the modelling of
the paths works. The file name will be consumed by the pathPart element,
because the delimiters are prefix/infix. I think you need to use postfix
separators or terminators. With postfix separator, failure to find the
separator when matching the last part to 'pathPart' will cause a backtrack,
and we will then try and (correctly) match the last part to 'file'. Note
that there is just one sequence when you do it this way, as the separator
also applies to 'driveLetter'.</font>
<br>
<br><font size=2 color=#008080 face="Courier New">&lt;</font><font size=2 color=#3f8080 face="Courier New">element</font><font size=2 face="Courier New">
</font><font size=2 color=#800080 face="Courier New">name</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New"><i>&quot;absolutePath&quot;</i></font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;</font><font size=2 color=#3f8080 face="Courier New">complexType</font><font size=2 face="Courier New">
</font><font size=2 color=#800080 face="Courier New">dfdl:representation</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New"><i>&quot;text&quot;</i></font><font size=2 face="Courier New">
</font><font size=2 color=#800080 face="Courier New">dfdl:encoding</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New"><i>&quot;{$enc}&quot;</i></font><font size=2 face="Courier New">
</font><font size=2 color=#800080 face="Courier New">dfdl:lengthKind</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New"><i>&quot;delimited&quot;</i></font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;</font><font size=2 color=#3f8080 face="Courier New">sequence</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; </font><font size=2 color=#800080 face="Courier New">dfdl:separator</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New"><i>&quot;{$sep}&quot;</i></font><font size=2 face="Courier New">
</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; </font><font size=2 color=#800080 face="Courier New">dfdl:separatorPosition</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New"><i>&quot;postfix&quot;</i></font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&nbsp;
&lt;</font><font size=2 color=#3f8080 face="Courier New">element</font><font size=2 face="Courier New">
</font><font size=2 color=#800080 face="Courier New">name</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New"><i>&quot;driveLetter&quot;</i></font><font size=2 face="Courier New">
</font><font size=2 color=#800080 face="Courier New">type</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New"><i>&quot;string&quot;</i></font><font size=2 face="Courier New">
</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;</font><font size=2 color=#800080 face="Courier New">dfdl:length</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New"><i>&quot;1&quot;</i></font><font size=2 face="Courier New">
</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;</font><font size=2 color=#800080 face="Courier New">dfdl:lengthKind</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New"><i>&quot;explicit&quot;</i></font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;</font><font size=2 color=#800080 face="Courier New">dfdl:terminator</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New"><i>&quot;:&quot;</i></font><font size=2 color=#008080 face="Courier New">/&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
</font><font size=2 color=#008080 face="Courier New">&lt;</font><font size=2 color=#3f8080 face="Courier New">element</font><font size=2 face="Courier New">
</font><font size=2 color=#800080 face="Courier New">name</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New"><i>&quot;pathPart&quot;</i></font><font size=2 face="Courier New">
</font><font size=2 color=#800080 face="Courier New">type</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New"><i>&quot;string&quot;</i></font><font size=2 face="Courier New">
</font><font size=2 color=#800080 face="Courier New">maxOccurs</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New"><i>&quot;30&quot;</i></font><font size=2 face="Courier New">
</font><font size=2 color=#800080 face="Courier New">minOccurs</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New"><i>&quot;0&quot;
</i></font><font size=2 color=#008080 face="Courier New">/&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&nbsp;
&lt;</font><font size=2 color=#3f8080 face="Courier New">element</font><font size=2 face="Courier New">
</font><font size=2 color=#800080 face="Courier New">name</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New"><i>&quot;file&quot;</i></font><font size=2 face="Courier New">
</font><font size=2 color=#800080 face="Courier New">type</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New"><i>&quot;string&quot;</i></font><font size=2 face="Courier New">
</font>
<br><font size=2 color=#800080 face="Courier New">&nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;dfdl:lengthKind</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New"><i>&quot;endOfParent&quot;</i></font><font size=2 color=#008080 face="Courier New">/&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;/</font><font size=2 color=#3f8080 face="Courier New">sequence</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;/</font><font size=2 color=#3f8080 face="Courier New">complexType</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br><font size=2 color=#008080 face="Courier New">&lt;/</font><font size=2 color=#3f8080 face="Courier New">element</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br>
<br><font size=2 face="sans-serif">If it can be simplified then I like
it as an example to show both payload resolution and dynamic markup, and
I'd like to build on it for action 028 (watch this space). </font>
<br>
<br><font size=2 face="sans-serif">Regards<br>
<br>
Steve Hanson<br>
Programming Model Architect<br>
WebSphere Message Brokers<br>
Hursley, UK<br>
Internet: smh@uk.ibm.com<br>
Phone (+44)/(0) 1962-815848</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>&quot;Mike Beckerle&quot;
&lt;mbeckerle.dfdl@gmail.com&gt;</b> </font>
<br><font size=1 face="sans-serif">Sent by: dfdl-wg-bounces@ogf.org</font>
<p><font size=1 face="sans-serif">22/05/2009 19:12</font>
<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=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">&lt;dfdl-wg@ogf.org&gt;</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">[DFDL-WG] schemas and variables example
(envelop &amp; payloads)</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=3>&nbsp;</font>
<br><font size=2 face="Arial">I enclosed an eclipse project. If you import
this to eclipse (ganymede version) it does a pretty good job at validating
and helping you work with DFDL.</font>
<br><font size=3>&nbsp;</font>
<br><font size=2 face="Arial">The 'variables' subdir contains an example
of using variables to bind parameters for contained &quot;payloads&quot;
of an enclosing envelope.</font>
<br><font size=2 face="Arial"><br>
The example is that the payloads are either absolute or relative path names,
but the separator is specified by the envelope along with the character
set.</font>
<br><font size=3>&nbsp;</font>
<br><font size=2 face="Arial">So, for example: the contents could be C:\a\b\c
or C:/a/b/c or d\e\f or d/e/f.</font>
<br><font size=3>&nbsp;</font>
<br><font size=2 face="Arial">I'm curious as to what people think of this
example. It's pretty short.</font>
<br><font size=3>&nbsp;</font>
<p><font size=1 face="Arial">Note: Please do not send sensitive data in
unencrypted form in email. We cannot provide secure transit for email over
the Internet.</font>
<p><font size=2 color=#000080 face="Arial">Mike Beckerle | CTO | Oco, Inc
<br>
Tel: 781-810-2125 | 100 Fifth Ave, 4th Floor, Waltham, MA 02451 | </font><a href="mailto:mbeckerle@oco-inc.com"><font size=2 color=blue face="Arial"><u>mbeckerle@oco-inc.com</u></font></a><font size=2 color=#000080 face="Arial">
| </font><a href="http://www.oco-inc.com/"><font size=2 color=blue face="Arial"><u>www.oco-inc.com</u></font></a><font size=2 color=#000080 face="Arial"><br>
Blog: </font><a href=http://cboblog.typepad.com/><font size=2 color=blue face="Arial"><u>cboblog.typepad.com</u></font></a><font size=2 color=#000080 face="Arial">
</font>
<p><font size=2 color=#a13f00 face="Arial"><b><i>TURNING DATA INTO ANSWERS.
FASTER THAN YOU EVER IMAGINED.</i></b></font>
<p><font size=3>&nbsp;[attachment &quot;DFDL-eclipse-project.zip&quot;
deleted by Steve Hanson/UK/IBM] </font><tt><font size=2>--<br>
 &nbsp;dfdl-wg mailing list<br>
 &nbsp;dfdl-wg@ogf.org<br>
 &nbsp;http://www.ogf.org/mailman/listinfo/dfdl-wg</font></tt>
<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>
<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>