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

Re: A "processing model" proposal

From: Norman Walsh <Norman.Walsh@Sun.COM>
Date: Fri, 17 Feb 2006 14:08:30 -0500
To: public-xml-processing-model-wg@w3.org
Message-ID: <87zmkpajm9.fsf@nwalsh.com>
/ Erik Bruchez <ebruchez@orbeon.com> was heard to say:
| Richard & all,
| Here is how you do this with XPL [1]:
| <p:pipeline version = "1.0"
|             xmlns:p="http://www.orbeon.com/oxf/pipeline"
|             xmlns:xpl="http://www.orbeon.com/oxf/xpl/standard"
|             xmlns:my="http://www.example.org/xpl/my-components">
|     <p:input name="document-1"/>
|     <p:input name="document-2"/>
|     <p:output name="result" infosetref="diff"/>

What's the significance of naming the result "result"? (I don't see it
referenced anywhere else in the pipeline.)

|     <p:processor name="xpl:xslt">
|         <p:input name="data" infosetref="#document-1"/>
|         <p:input name="stylesheet" infosetref="strip-ids.xsl"/>
|         <p:output name="data" infoset="stripped-1"/>
|     </p:processor>
|     <p:processor name="xpl:xslt">
|         <p:input name="data" infosetref="#document-2"/>
|         <p:input name="stylesheet" infosetref="strip-ids.xsl"/>
|         <p:output name="data" infoset="stripped-2"/>
|     </p:processor>
|     <p:processor name="my:diff">
|         <p:input name="doc1" infosetref="#stripped-1"/>
|         <p:input name="doc2" infosetref="#stripped-2"/>
|         <p:output name="diff" infoset="diff"/>
|     </p:processor>
| </p:pipeline>
| The syntax is straightforward, but feel free to ask questions. Note
| that the stylesheets are *not* "parameters", as there is no reason to
| make a difference between the stylesheet and the main input of the
| transformation: both are XML documents.

Indeed. What about the case where I want to pass the parameter
"chunk-on-sections" with the value "1" to the XSLT processor?

                                        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 Friday, 17 February 2006 19:08:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:21:47 GMT