Iterating over a list of file paths to run an xslt on each

-----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:24:09 UTC