Re: Dynamically setting the text of an added element in a pipeline . . ?

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:with-param name="..." select="..."/>

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