Can a pipeline 'call' itself?

Hi List,

I'm tinkering with some chunking scripts (again!), and would appreciate some advice on how to approach a problem.

Essentially our (document based) data has some 'floating' structures which are called in at relevant points in the XML using processing instructions (please don't suggest alternative data models; that's well outside the scope of the problem!).  These are often stored elsewhere in the document compared to the XML we might wish to extract into a 'chunk'.  Fairly straightforward so far; I can successfully pull floats into the chunk from the original complete document based on references within that chunk.

The issue is that these floating structures may themselves refer to other floating structures; therefore some form of recursion (and testing) is required.  What is the best way of approaching this?  I assume that it's not XProc's 'way' to have a procedural 'do.. until' structure - is the alternative to build a timeline that 'calls' itself?

Thanks in advance,

Tom

Oxford University Press (UK) Disclaimer

This message is confidential. You should not copy it or disclose its contents to anyone. You may use and apply the information for the intended purpose only. OUP does not accept legal responsibility for the contents of this message. Any views or opinions presented are those of the author only and not of OUP. If this email has come to you in error, please delete it, along with any attachments. Please note that OUP may intercept incoming and outgoing email communications.

Received on Tuesday, 27 July 2010 17:08:49 UTC