I have 2 processors without input and output.I put them one after another in the xpl.I wandor whether they will be executed intercurrently ?
Thanks! Xiao-Tian Bai china -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Bai,
the order of the processors in the xpl does not mean anything. Instead, the processors are put together in a chain using the input and output elements: http://www.orbeon.com/ops/doc/reference-xpl-pipelines#d12e1056 Here is an example: <p:config xmlns:p="http://www.orbeon.com/oxf/pipeline" xmlns:oxf="http://www.orbeon.com/oxf/processors" xmlns:aspic="http://www.cruk.com/aspic/editor/v1"> <p:param name="instance" type="input" /> <p:processor name="oxf:java"> <p:input name="config"> <config sourcepath="oxf:/java" class="org.cruk.aspic.editor.api.orbeon.ExportKnowledgeBase"/> </p:input> <p:input name="data" href="#instance"/> <p:output name="data" id="knowledgebase" /> </p:processor> <p:processor name="oxf:xml-converter"> <p:input name="config"> <config> <encoding>utf-8</encoding> <indent>false</indent> </config> </p:input> <p:input name="data" href="#knowledgebase"/> <p:output name="data" id="converted"/> </p:processor> <p:processor name="oxf:http-serializer"> <p:input name="config"> <config> <header> <name>Content-disposition</name> <value>attachment; filename=aspic.knowledgebase.xml</value> </header> <content-type>text/xml</content-type> </config> </p:input> <p:input name="data" href="#converted"/> </p:processor> </p:config> Note how I have connected all the processors by using the names: - 'converted' - 'knowledgebase' - 'instance' Hope that helps. Henrik On 11/23/06, [hidden email] <[hidden email]> wrote: > I have 2 processors without input and output.I put them one after another in the xpl.I wandor whether they will be executed intercurrently ? > Thanks! Xiao-Tian Bai china > > > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Henrik,
The order can take presidence when there are processors with no inputs or outputs, its then first-come-first-served Ryan Ryan Puddephatt Software Engineer Teleflex Group - IT UK 1 Michaelson Square Livingston West Lothian Scotland EH54 7DP e> [hidden email] t> +44(0)1506 407 110 f> +44(0)1506 407 108 >-----Original Message----- >From: Henrik Pettersen [mailto:[hidden email]] >Sent: 23 November 2006 10:01 >To: [hidden email] >Subject: Re: [ops-users] Will the processors execute >intercurrently in the xpl? > >Bai, > >the order of the processors in the xpl does not mean anything. >Instead, the processors are put together in a chain using the >input and output elements: >http://www.orbeon.com/ops/doc/reference-xpl-pipelines#d12e1056 > >Here is an example: ><p:config xmlns:p="http://www.orbeon.com/oxf/pipeline" > xmlns:oxf="http://www.orbeon.com/oxf/processors" > xmlns:aspic="http://www.cruk.com/aspic/editor/v1"> > > <p:param name="instance" type="input" /> > > <p:processor name="oxf:java"> > <p:input name="config"> > <config sourcepath="oxf:/java" >class="org.cruk.aspic.editor.api.orbeon.ExportKnowledgeBase"/> > </p:input> > <p:input name="data" href="#instance"/> > <p:output name="data" id="knowledgebase" /> > </p:processor> > > <p:processor name="oxf:xml-converter"> > <p:input name="config"> > <config> > <encoding>utf-8</encoding> > <indent>false</indent> > </config> > </p:input> > <p:input name="data" href="#knowledgebase"/> > <p:output name="data" id="converted"/> > </p:processor> > > <p:processor name="oxf:http-serializer"> > <p:input name="config"> > <config> > <header> > <name>Content-disposition</name> > <value>attachment; >filename=aspic.knowledgebase.xml</value> > </header> > <content-type>text/xml</content-type> > </config> > </p:input> > <p:input name="data" href="#converted"/> > </p:processor> > ></p:config> > >Note how I have connected all the processors by using the names: >- 'converted' >- 'knowledgebase' >- 'instance' > >Hope that helps. > >Henrik > > >On 11/23/06, [hidden email] <[hidden email]> wrote: >> I have 2 processors without input and output.I put them one >after another in the xpl.I wandor whether they will be >executed intercurrently ? >> Thanks! Xiao-Tian Bai china >> >> >> >> >> -- >> You receive this message as a subscriber of the >[hidden email] mailing list. >> To unsubscribe: mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> ObjectWeb mailing lists service home page: >> http://www.objectweb.org/wws >> >> >> > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
I learned something new! Thanks, Ryan.
On 11/23/06, Ryan Puddephatt <[hidden email]> wrote: > Henrik, > The order can take presidence when there are processors with no > inputs or outputs, its then first-come-first-served > > Ryan > > Ryan Puddephatt > Software Engineer > > Teleflex Group - IT UK > 1 Michaelson Square > Livingston > West Lothian > Scotland > EH54 7DP > > e> [hidden email] > t> +44(0)1506 407 110 > f> +44(0)1506 407 108 > > > > >-----Original Message----- > >From: Henrik Pettersen [mailto:[hidden email]] > >Sent: 23 November 2006 10:01 > >To: [hidden email] > >Subject: Re: [ops-users] Will the processors execute > >intercurrently in the xpl? > > > >Bai, > > > >the order of the processors in the xpl does not mean anything. > >Instead, the processors are put together in a chain using the > >input and output elements: > >http://www.orbeon.com/ops/doc/reference-xpl-pipelines#d12e1056 > > > >Here is an example: > ><p:config xmlns:p="http://www.orbeon.com/oxf/pipeline" > > xmlns:oxf="http://www.orbeon.com/oxf/processors" > > xmlns:aspic="http://www.cruk.com/aspic/editor/v1"> > > > > <p:param name="instance" type="input" /> > > > > <p:processor name="oxf:java"> > > <p:input name="config"> > > <config sourcepath="oxf:/java" > >class="org.cruk.aspic.editor.api.orbeon.ExportKnowledgeBase"/> > > </p:input> > > <p:input name="data" href="#instance"/> > > <p:output name="data" id="knowledgebase" /> > > </p:processor> > > > > <p:processor name="oxf:xml-converter"> > > <p:input name="config"> > > <config> > > <encoding>utf-8</encoding> > > <indent>false</indent> > > </config> > > </p:input> > > <p:input name="data" href="#knowledgebase"/> > > <p:output name="data" id="converted"/> > > </p:processor> > > > > <p:processor name="oxf:http-serializer"> > > <p:input name="config"> > > <config> > > <header> > > <name>Content-disposition</name> > > <value>attachment; > >filename=aspic.knowledgebase.xml</value> > > </header> > > <content-type>text/xml</content-type> > > </config> > > </p:input> > > <p:input name="data" href="#converted"/> > > </p:processor> > > > ></p:config> > > > >Note how I have connected all the processors by using the names: > >- 'converted' > >- 'knowledgebase' > >- 'instance' > > > >Hope that helps. > > > >Henrik > > > > > >On 11/23/06, [hidden email] <[hidden email]> wrote: > >> I have 2 processors without input and output.I put them one > >after another in the xpl.I wandor whether they will be > >executed intercurrently ? > >> Thanks! Xiao-Tian Bai china > >> > >> > >> > >> > >> -- > >> You receive this message as a subscriber of the > >[hidden email] mailing list. > >> To unsubscribe: mailto:[hidden email] > >> For general help: mailto:[hidden email]?subject=help > >> ObjectWeb mailing lists service home page: > >> http://www.objectweb.org/wws > >> > >> > >> > > > > > > > > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
In reply to this post by suneclipse
[hidden email] wrote:
> I have 2 processors without input and output.I put them one after > another in the xpl.I wandor whether they will be executed > intercurrently ? I also wanted to mention that the XPL specification discusses the processing model in details: http://www.w3.org/Submission/xpl/#processing-model (Note that the syntax described in that specification differs slightly from the version of XPL implemented in OPS, but the processing model is the same.) -Erik -- Orbeon Forms - XForms Everywhere http://www.orbeon.com/blog/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |