W3C home > Mailing lists > Public > public-xml-processing-model-wg@w3.org > March 2006


From: Norman Walsh <Norman.Walsh@Sun.COM>
Date: Wed, 15 Mar 2006 09:56:09 -0500
To: public-xml-processing-model-wg@w3.org
Message-ID: <87k6avzrhy.fsf@nwalsh.com>
I think we've mentioned the possibility of "reusable" pipelines a
couple of times. It strikes me that in a complex pipeline, I could
easily wind up with several steps that I wanted to have applied to
different documents. We could support this by allowing pipelines to
define sub-pipelines:

  <p:define-pipeline name="expandandvalidate">
    <p:input name="schemas" label="s"/>
    <p:input name="document" label="d"/>

    <p:step name="xinclude">
      <p:input use="d"/>

    <p:step name="validate">
      <p:input name="schemas" use="s"/>
      <p:input name="document"/>

I imagine that the labels inside a defined pipeline are local to that
pipeline. And references to outside labels are forbidden.

Then we allow these steps to be called anywhere that a single step
could occur:

  <p:call-pipeline name="expandandvalidate">
    <p:input name="schemas" href="a.xsd"/>
    <p:input name="document" href="mydoc.xml"/>
    <p:output label="ok1"/>

                                        Be seeing you,

Norman.Walsh@Sun.COM / XML Standards Architect / Sun Microsystems, Inc.
NOTICE: This email message is for the sole use of the intended
recipient(s) and may contain confidential and privileged information.
Any unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.

Received on Wednesday, 15 March 2006 14:56:20 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:32:39 UTC