- From: Wendell Piez <wapiez@mulberrytech.com>
- Date: Wed, 14 Apr 2010 10:33:44 -0400
- To: James Fuller <james.fuller.2007@gmail.com>
- Cc: xproc-dev@w3.org
Hi Jim, Thanks, this helps a lot. In diagram form, the flow is like this: input1.xml -> A -> B -> C -> result1C.xml input2.xml -> A -> B -> C -> result2C.xml input1.xml + input2.xml -> aggregate.xml aggregate.xml -> D -> resultD.xml where A through D are all transformations. I'm imagining p:pack gives me a way of combining result1C.xml and result2C.xml into the input for the D process. But of course I'm not interested in serializing these. (Only resultD.xml will be serialized. Until, that is, I have an E, F etc. But resultD.xml would be a reasonable file to cache, so I'm going with that for now.) I may take you up on the offer to work it out on the list, but this project is fitting in between many other things, so you'll have to be patient with me. :-) Cheers, Wendell At 04:49 AM 4/14/2010, James Fuller wrote: >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 > >http://xmlcalabash.com/extension/steps/ > >cx:eval > >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 > >http://norman.walsh.name/2010/04/13/flickrWithXProc > >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. ====================================================================== Wendell Piez mailto:wapiez@mulberrytech.com Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Received on Wednesday, 14 April 2010 16:43:02 UTC