Re: Defaulting and syntactic shortcuts

/ Innovimax SARL <innovimax@gmail.com> was heard to say:
|> 3. Consider:
|>
|>    <p:input port="source">
|>      <p:pipe step="stepname" port="portname"/>
|>    </p:input>
|>
|>    Isn't this an obvious syntactic convenience?
|>
|>    <p:input port="source" step="stepname" port="portname"/>
|
| did you see that you have two port attribute ?

Ah. Good. At least that one's clearly not a good idea ;-)

|> 4. Consider:
|>
|>    <p:input port="source">
|>      <p:inline>
|>        <some-root>...</some-root>
|>      </p:inline>
|>    </p:input>
|>
|>    Isn't this an obvious syntactic convenience?
|>
|>    <p:input port="source">
|>      <some-root>...</some-root>
|>    </p:input>
|
| This one is very dangerous, since we allow any foreign element to
| appear anywhere

That's not true anymore. Ignorable elements are now allowed basically
only as the children of a p:pipeline-library or p:pipeline. We do
allow p:documentation anywhere, so maybe that's reason enough.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | Nothing ever becomes real till it is
http://nwalsh.com/            | experienced--even a proverb is no
                              | proverb to you until your life has
                              | illustrated it.-- Keats

Received on Wednesday, 18 July 2007 16:30:55 UTC