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

  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"
                    xmlns:c="http://www.w3.org/ns/xproc-step"
                    version="1.0">
       <p:output port="result"/>
       <p:document-template>
          <p:input port="template">
             <p:inline>
                <c:data>before { $val } after</c:data>
             </p:inline>
          </p:input>
          <p:input port="source">
             <p:empty/>
          </p:input>
          <p:with-param name="val" select="'xyz'"/>
       </p:document-template>
    </p:declare-step>

produces the following result:

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

instead of:

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

  Regards,

-- 
Florent Georges
http://fgeorges.org/
Received on Monday, 20 December 2010 01:28:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 20 December 2010 01:28:40 GMT