W3C home > Mailing lists > Public > xproc-dev@w3.org > May 2012

Re: Multiple XSLT transformations with intermediate files

From: Patrick Gundlach <patrick@gundla.ch>
Date: Sun, 20 May 2012 13:49:38 +0200
Message-Id: <CEFA3FA8-ACD4-4C1C-AE12-1DD983E501CF@gundla.ch>
To: xproc-dev@w3.org
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:50:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 20 May 2012 11:50:03 GMT