- From: Hans-Juergen Rennau <rennau@bits-ac.com>
- Date: Thu, 10 Mar 2011 10:17:10 +0100
- To: "Christopher.R.Ball" <christopher.r.ball@gmail.com>
- CC: XProc Dev <xproc-dev@w3.org>
Received on Thursday, 10 March 2011 09:17:47 UTC
Hi Christopher and Vojtech,
a remark concerning the template approach Vojtech mentioned. (Note: in
Calabash the template step is still called p:document-template.)
In Christopher's case, the template-based solution is far from elegant,
isn't it? The template mechanism is fine, but it is a pity that it is
only available as a step, not *directly* applicable to p:inline. Hence
the extra step, bad readability and verbosity. What I would wish for
were a template variant of p:inline, something like:
<p:inline-template>
<p:with-param name="..." select="..."/>
<p:inline>
<foo>{$bar}</foo>
</p:inline>
</p:inline-template>
Has the working group considered that?
Kind regards,
-- Hans-Juergen
Am 10.03.2011 04:04, schrieb Christopher.R.Ball:
>
> Am I missing something . . . or is it not possible to dynamically set
> the /text()/ of an element in a pipeline (in xproc without having to
> jump out to P:XSTL or P:XQUERY)?
>
> Something to the effect of:
>
> <p:for-each name="UploadInGroups">
> <p:insert position="last-child" match="/add/doc" name="insertCounter">
> <p:input port="insertion">
> <p:inline>
> <field name="iterationCount">*p:iteration-position() *</field>
> </p:inline>
> </p:input>
> </p:insert>
>
> . . .
>
> </p:for-each>
>
> Most grateful,
>
> Christopher
Received on Thursday, 10 March 2011 09:17:47 UTC