- From: Jostein Austvik Jacobsen <josteinaj@gmail.com>
- Date: Tue, 1 May 2012 00:40:19 +0200
- To: David Cramer <david@thingbag.net>
- Cc: XProc Dev <xproc-dev@w3.org>
- Message-ID: <CAOCxfQeQvs8pX7wqHTZ+4CkQs-+6WrgugLwhXGdakwUay+0=kw@mail.gmail.com>
Use p:load to load documents dynamically. I think I'd do something like this... (untested) <p:for-each> <p:iteration-source select="//wadl"> <p:pipe port="result" step="yourFileList"/> </p:iteration-source> <p:variable name="href" select="/*/@href"/> <p:load> <p:with-option name="href" select="$href"/> </p:load> <!-- ... do your stuff ... --> </p:for-each> Jostein 2012/5/1 David Cramer <david@thingbag.net> > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi there, > In a pipeline [1], I use an xslt to find a list of URIs to files which > I would like to then process. The list of files comes out on the > secondary port of the list-files step in the format <root><wadl > href="file://path/to/file.wadl"/></root> (though I could change the > xslt if necessary). > > In the p:for-each, I would like to read each of these files, process > it, and write out the result. I've tried various things involving > p:document and other combinations, but I suspect I'm going about > things the wrong way. All my attempts result in a XD0016. Can someone > point me in the right direction? > > Thanks, > David > > [1] http://pastebin.com/qSb6PVie > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.11 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iQEcBAEBAgAGBQJPnxDrAAoJEMHeSXG7afUh+vEH/ifRJlrfCL17uLQXrVmlxUD/ > OIesAmxmV5uvurgwIN8i21FXgH2oncqprkQVcleZ1Dek70ZC3W6agqzV3MT0fdnJ > Oz5SWhuZiLrf3LtwCl4vr09CssiELd/2oCfym5eOIeIRlWb4Lr2wpGbgw6gxaVJs > T2mralWsFWvMahg/ljBGATEk3cy2duCISY6modt9SMJx6VDiV6D3SHOOObIocNqM > VDTxCcEYt8opBtUQcDwCDEMMpEiXdJqsC1D2tgKU44PhBTaMaxG4QW+Q/2yNNC7G > fC+tB1ICjOxu/d6S+orCDt6crOVVfTMivwnafguU63aXN+Fk8WNddXtImNCEVps= > =fcsE > -----END PGP SIGNATURE----- > >
Received on Monday, 30 April 2012 22:41:08 UTC