W3C home > Mailing lists > Public > xproc-dev@w3.org > December 2010

p:document-template in Calabash: bug?

From: Florent Georges <fgeorges@fgeorges.org>
Date: Mon, 20 Dec 2010 02:27:45 +0100
Message-ID: <AANLkTikkxbynZuy_gcokr_TQ116YhZUV0c34gqf7XW2+@mail.gmail.com>
To: XProc Dev <xproc-dev@w3.org>

  I am using p:document-template with latest Calabash.  I found
an "interesting" behaviour.  It seems some text nodes can be
ignored in the template source, when they follow an expression.
The following pipeline, for instance:

    <p:declare-step xmlns:p="http://www.w3.org/ns/xproc"
       <p:output port="result"/>
          <p:input port="template">
                <c:data>before { $val } after</c:data>
          <p:input port="source">
          <p:with-param name="val" select="'xyz'"/>

produces the following result:

    <c:data>before xyz</c:data>

instead of:

    <c:data>before xyz after</c:data>


Florent Georges
Received on Monday, 20 December 2010 01:28:38 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:03:07 UTC