Re: Multiple XSLT transformations with intermediate files

if you remove the p:store YES they are connected

The p:store step has an interesting side-effet, it disconnect the following
steps

so

do this instead

<p:xslt name="first-to-intermediate">
<p:xslt>
...
...
<p:store href="intermediate.xml" >
  <p:input port="source">
    <p:pipe step="first-to-intermediate" port="result"/>
 </p:input>
</p:store>
...
<p:store href="final.xml"/>

Xmlizer
2012/5/20 Patrick Gundlach <patrick@gundla.ch>

> Hello Xmlizer,
>
> > In XProc, it's not a good strategy to rely on the order of execution
> > Here follow an excerpt of the XProc 1.0 Specification
> >
> > [[
> > The pattern of connections between steps will not always completely
> determine their order of evaluation. The evaluation order of steps not
> connected to one another is implementation-dependent.
> > ]]
>
> So I obviously don't understand XProc yet. I thought that I have connected
> (implicitly) my four steps:
>
> <p:xslt name="first-to-intermediate">
> ...
> <p:store href="intermediate.xml" />
> ...
> <p:xslt>
> ...
> <p:store href="final.xml"/>
>
> q: These are steps, right?
> q: These steps are connected (output from n goes to input to n+1), right?
> q: They are executed in order - if not, I am misunderstanding everything I
> have ever known from XProc.
>
> > My advice here is to make the pipeline as if you don't need to serialize
> (so you just connect the result of the previous step to the source of the
> next step) and then add the serialization at the end of XProc pipeline
> using p:store with inputs connected at the right place
>
> Well, I also need the intermediate file serialized, because I need to edit
> that later manually.
>
> Thanks so far!
>
> Patrick
>
>
>

Received on Sunday, 20 May 2012 11:55:49 UTC