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

Can a pipeline 'call' itself?

From: HILLMAN, Tomos <tomos.hillman@oup.com>
Date: Tue, 27 Jul 2010 18:08:15 +0100
To: "xproc-dev@w3.org" <xproc-dev@w3.org>
Message-ID: <04E229667EEBCF4E9A075810ECA4665F30B5C8F372@UKMB02.uk.oup.com>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 July 2010 17:08:50 GMT