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

Re: p:document-template in Calabash: bug?

From: mozer <xmlizer@gmail.com>
Date: Thu, 13 Jan 2011 13:11:07 +0100
Message-ID: <AANLkTi=y0oBQViJrQjYeojTOqhrF83=OUX8+7fhNcabC@mail.gmail.com>
To: vojtech.toman@emc.com
Cc: xproc-dev@w3.org
Vojtech,

First it might be good to rename to call it template-018.xml instead
(an svn rename should do the trick)
Then I think it doesn't test exactly the use case Florent cited

<p:input port="template">
        <p:inline>
          <!-- {$val} -->
          <?a {$val} -->
          <c:data>before { $val } after</c:data>
          <!-- {$val} -->
          <?a {$val} -->
        </p:inline>
      </p:input>
That one, would do

Regads,

Xmlizer

On Thu, Jan 13, 2011 at 11:44 AM,  <vojtech.toman@emc.com> wrote:
>> Florent Georges <fgeorges@fgeorges.org> writes:
>> >   I confirm this is fixed in the latest version (0.9.30).  But while
>> > confirming this, I found another bug.  If you add a comment after the
>> > root element of the template port, which contains an expression
>> > enclosed in { and }, it generates a Null Pointer Exception.  Full
>> > repro (I only added the comment):
>>
>> Good catch. I was expecting the interpolated content to have an element
>> ancestor and comments (or PIs) that are siblings to the document
>> element don't have one.
>>
>> Fixed for the next release which I'll make asap.
>>
>
> ...and the pipeline added to the test suite:
>
> http://tests.xproc.org/tests/optional/document-template-018.xml
>
> Regards,
> Vojtech
>
>
> --
> Vojtech Toman
> Consultant Software Engineer
> EMC | Information Intelligence Group
> vojtech.toman@emc.com
> http://developer.emc.com/xmltech
>
>
Received on Thursday, 13 January 2011 12:11:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 13 January 2011 12:11:40 GMT