- From: Rui Lopes <rlopes@di.fc.ul.pt>
- Date: Thu, 25 May 2006 11:35:10 +0100
- To: Norman Walsh <Norman.Walsh@Sun.COM>
- Cc: public-xml-processing-model-wg@w3.org
- Message-ID: <4475885E.1060007@di.fc.ul.pt>
Norman Walsh wrote: > Maybe, but that's not obvious to me. I had in mind that for-each would > bind an input to the first document in its input sequence and run the > steps it contains with that input. Then it would bind the input to the > second document in its input sequence and run the steps again. I didn't > expect to have XPath expressions referring directly to the current > input document inside for-each any more than elsewhere in the > pipeline. > > I had in mind something like this: > > <p:step name="xslt"> > ... > <p:output name="result" label="styled-docs"/> > </p:step> > > <p:for-each ref="styled-docs"> > <p:input name="document" label="doc"/> > <p:output name="result" label="result"/> > > <p:step name="tidy"> > <p:input name="document" ref="doc"/> > <p:output name="result" label="result"/> > </p:step> > </p:for-each> I've got something bugging my head on p:for-each. How to handle naming the outputs from pipelines which have for-each on them? Things such as accessing chapter-1.xml..chapter-n.xml in the pipeline. Should we care about them? If so, we'd define it through regexp-alike expressions? If not, then it's an implementation/environment thing? I'd go for having something in the spec, like: <p:pipeline> <p:input name="chapter" href="chapter{*}.xml" /> ... <p:for-each select="$chapter"> ... </p:for-each> </p:pipeline> And in the environment we could just override it (if needed) with something like: ~# xproc mypipe.xml -Ichapter="chap{*}.xml" Cheers, Rui
Received on Thursday, 25 May 2006 10:36:07 UTC