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

You should be able to use p:string-replace:

<p:string-replace match="myElem/text()" replace="'some text'"/>

see: http://www.w3.org/TR/xproc/#c.string-replace

BR,
Romain.

Le 10 mars 11 à 04:04, Christopher.R.Ball a écrit :

>
> 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 08:09:41 UTC