W3C home > Mailing lists > Public > xproc-dev@w3.org > March 2011

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

From: Florent Georges <fgeorges@fgeorges.org>
Date: Thu, 10 Mar 2011 11:11:19 +0100
Message-ID: <AANLkTinuaGZNSh3dOc9xzJV46-R3pg9ZjXwKaJHFh8oh@mail.gmail.com>
To: Hans-Juergen Rennau <rennau@bits-ac.com>
Cc: "Christopher.R.Ball" <christopher.r.ball@gmail.com>, XProc Dev <xproc-dev@w3.org>
On 10 March 2011 10:17, Hans-Juergen Rennau wrote:

  Hi,

> 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>

  I don't quite understand.  What's the difference with the
following? :

    <p:template>
       <p:input port="template">
          <p:inline>
             <foo>{ $bar }</foo>
          </p:inline>
       </p:input>
       <p:with-param name="bar" select="..."/>
    </p:template>

  Regards,

-- 
Florent Georges
http://fgeorges.org/
Received on Thursday, 10 March 2011 10:12:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 10 March 2011 10:12:13 GMT