Foreach, Viewport and Choose and another way to default

Dear,

It seems in those cases that we add an unneeded surrounder wrapper
because we don't care about the name

so what about

<p:for-each
  name = QName
  select? = xpath expression>
   ((p:document|p:pipe),
    p:output*,
    p:parameter*,
    subpipeline)
</p:for-each>

<p:for-each name="chapters" select="//chapter">
  <p:document href="http://example.org/docbook.xml"/>
  <p:output port="html">
    <p:pipe step="xform-to-html port="result"/>
  </p:output>
  ...
</p:for-each>

the same for viewport and for choose and when

== Defaulting ==
And it seems like, some more times the defaulting story could be about
the name of the in/output

In those case an option could be to allow

input|pipe|document instead of just input
and
output|pipe|document instead of just output

may it could seem bizarre, but it's a way when we don't need a wrapper
to keep the semantics and xml less verbose

Mohamed,
-- 
Innovimax SARL
Consulting, Training & XML Development
9, impasse des Orteaux
75020 Paris
Tel : +33 8 72 475787
Fax : +33 1 4356 1746
http://www.innovimax.fr
RCS Paris 488.018.631
SARL au capital de 10.000 €

Received on Thursday, 21 December 2006 15:01:56 UTC