W3C home > Mailing lists > Public > xproc-dev@w3.org > April 2010

Re: Some hints on the basics

From: James Fuller <james.fuller.2007@gmail.com>
Date: Wed, 14 Apr 2010 10:49:08 +0200
Message-ID: <x2oa0ad8ffe1004140149qef3c3a1cm91449f8d40fda5b6@mail.gmail.com>
To: Wendell Piez <wapiez@mulberrytech.com>
Cc: xproc-dev@w3.org
Hello Wendell,

On Mon, Apr 12, 2010 at 9:46 PM, Wendell Piez <wapiez@mulberrytech.com> wrote:

> 1. Can I (how would I) call out to another pipeline (maybe in another XProc
> instance?) whose input would be my source document and whose results would
> be input to a new transformation?

there is no built in eval step or call-pipeline step in XProc ...
though most (including mine) include something ... I recommend
continue using calabash and it has



we hope to herd these common extensions into http://exproc.org/

> 2. How do I calculate the name of a secondary input document from that of a
> primary input? (I gather I can just do "replace(base-uri(),'dir1/','dir2/')"
> or the like, but where and how?)

there are a few ways to achieve this ... you might find analyzing
Normans recent blog entry


a good start to understanding more complex pipelines ... I think you
could use a p:variable to achieve this

> 3. How do I combine these, to run a transformation that takes as its inputs:
>  a. the results of my primary source file run through my subordinate
> pipeline;
>  b. the results of a secondary source (whose name is either parameterized
> for my XProc engine or derived from the name of my primary source) through
> the same subordinate pipeline.

I think once you understand your first 2 questions the third will come
easily to you ... might be easier for me to help if I could see a
representative example that you have now and iterate from there.

hth, J
Received on Wednesday, 14 April 2010 08:49:43 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:03:06 UTC