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

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 UTC