- From: Norman Walsh <ndw@nwalsh.com>
- Date: Thu, 30 Oct 2008 10:30:04 -0400
- To: public-xml-processing-model-comments@w3.org
- Message-ID: <m2tzau9mvn.fsf@nwalsh.com>
"Florent Georges" <fgeorges@fgeorges.org> writes:
> I don't feel this list is the best one for this question, because I
> guess what I'd like to achieve is possible with the current WD, but I
> don't think there is any general-purpose XProc list yet. And in case
> this is not possible with the WD...
There's xproc-dev@w3.org!
> I have document URIs in an XML document, and I would like to apply a
> stylesheet over each one. Something like the following (except that
> p:document/@href doesn't accept an AVT):
>
> <!--
> Try to apply a stylesheet on each document referenced by
> matrix/@href.
> -->
> <p:for-each>
> <p:iteration-source select="//matrix"/>
> <p:xslt>
> <p:input port="source">
> <p:document href="{ @href }"/>
> </p:input>
> <p:input port="stylesheet">
> ...
Use p:load:
<p:for-each>
<p:iteration-source select="//matrix"/>
<p:load>
<p:with-option name="href" select="/matrix/@href"/>
</p:load>
<p:xslt>
<p:input port="stylesheet">
...
Be seeing you,
norm
--
Norman Walsh <ndw@nwalsh.com> | Through space the universe grasps me
http://nwalsh.com/ | and swallows me up like a speck;
| through thought I grasp it.-- Pascal
Received on Thursday, 30 October 2008 14:31:06 UTC