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

Looping input and output in XProc

From: Nic Gibson <nicg@corbas.co.uk>
Date: Thu, 20 Sep 2012 16:19:16 +0100
Message-Id: <6D3CA557-51FA-447E-BEEE-FDCCC9851A1B@corbas.co.uk>
To: XProc Dev <xproc-dev@w3.org>
Hi Folks

I have a problem that is best expressed as something like this (given an xml document xmldoc initialised to the initial input)

1. fetch URL for XSLT from list
2. Load XSLT file
2. process xmldoc with XSLT
3. set xmldoc to result
4. fetch next file from from list. If found go to 1. If not emit current xmldoc

The problem is that I have an arbitrary collection of XSLT stylesheets that I need to apply to an XML document passing the result of the first transform to the second XSLT and so on. Right now, the only thing I can see to do is to use another bit of XSLT to generate an XProc pipeline and execute that. I would prefer to be able to do this without that and simply express this as some sort of iteration in XProc. 

I haven't been able to think of a way that I can express this in XProc. Anyone get some spare intuition?

Corbas Consulting / @CorbasLtd
Digital Publishing Consultancy and Training
http://www.corbas.co.uk, +44 (0)7718 906817/+44 (0)1273 930765
Received on Thursday, 20 September 2012 15:19:47 UTC

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