W3C home > Mailing lists > Public > xproc-dev@w3.org > May 2009

RE: XProc questions from my students

From: <Toman_Vojtech@emc.com>
Date: Wed, 20 May 2009 06:18:50 -0400
Message-ID: <6E216CCE0679B5489A61125D0EFEC7870FA0550C@CORPUSMX10A.corp.emc.com>
To: <xproc-dev@w3.org>
> >
> > 2. Why is it an error to include p:output in an atomic step?
> >
> Your are allowed to use p:output in the "signature" of a step
> When you use it, then connection is made by the steps that "reads
> from" this port

This is correct. In a compound step (p:for-each, p:viewport, ...), where
p:output is allowed, it can 'read from' the contained steps or inline or
external documents.

Atomic steps are different. They are blackbox-like things with no
internal structure (at least from the perspective of the caller). They
just perform some operation on the input data and produce some results
on their output ports. If p:output was allowed on atomic steps, it would
mean that you would be able to 'override' the step results, like this:

  <p:output port="result">
    <p:document href="somedoc.xml"/>

(= execute the p:count step, but return somedox.xml instead of the usual
c:result document)

But what would be the point of that? If you really want to do something
like this, you can always use p:identity etc.

Received on Wednesday, 20 May 2009 10:20:03 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:03:05 UTC