- From: Geert Bormans <geert@gbormans.telenet.be>
- Date: Thu, 04 Mar 2010 22:06:55 +0100
- To: xproc-dev@w3.org
Interesting, Assuming you really need a "store", I won't be able to add too much more to what was said already. I have a tendency though to name most of my steps. Since most of my pipelines have multiple input ports and multiple output ports and some forking and joining in the middle, I often like to have debug points in the middle of the sequences. For that I simply use extra output ports for debugging purposes, having a p:pipe referencing the named steps This way I get my debug states without the extra cost of an identity step. And I can make the results more readable by giving serialization instructions The Java around the processor (calabash in this case) binds the port in debugging mode and just drops it in production Just in the process of learning myself, I wonder, would that not be a more flexible approach over the using p:store? Or do I miss something? Cheers Geert At 15:09 4/03/2010, Alex Muir wrote: >Thanks, got it working.. all too logical. > >On Thu, Mar 4, 2010 at 1:53 PM, ><<mailto:Toman_Vojtech@emc.com>Toman_Vojtech@emc.com> wrote: > >Absolutely: > > > >… > ><p:identity name="before-store"/> > > > ><p:store href="…"/> > > > ><p:identity name="after-store"/> > > <p:input port="source"> > > <p:pipe step="before-store" port="result"/> > > </p:input> > ></p:identity> > >… > > > > > >Regards, > >Vojtech > > > > > >From: ><mailto:xproc-dev-request@w3.org>xproc-dev-request@w3.org >[mailto:xproc-dev-request@w3.org] On Behalf Of Alex Muir >Sent: Thursday, March 04, 2010 2:49 PM >To: XProc Dev >Subject: Storing a document mid sequence. Can it be done? > > > >Hi, > >I was reading a post here > ><http://markmail.org/search/?q=list%3Axproc-dev+p%3Astore#query:list%3Axproc-dev%20p%3Astore+page:1+mid:xzoj5hpzbz5jt2k2+state:results>http://markmail.org/search/?q=list%3Axproc-dev+p%3Astore#query:list%3Axproc-dev%20p%3Astore+page:1+mid:xzoj5hpzbz5jt2k2+state:results > >That stated: > >"If you stick a p:store in the middle of a >sequence, odds are good you aren't going to get >the result you expected. So by making the output >port not-primary, the pipeline author is forced >to be explicit about the bindings desired." > >Is there a way to save a copy of what the >current document looks like mid sequence and continue processing? > >Regards >-- >Alex ><https://sites.google.com/a/utg.edu.gm/alex>https://sites.google.com/a/utg.edu.gm/alex > >Some Good Music ><http://sites.google.com/site/greigconteh/>http://sites.google.com/site/greigconteh/ > > > > >-- >Alex ><https://sites.google.com/a/utg.edu.gm/alex>https://sites.google.com/a/utg.edu.gm/alex > >Some Good Music ><http://sites.google.com/site/greigconteh/>http://sites.google.com/site/greigconteh/
Received on Thursday, 4 March 2010 21:07:32 UTC