This does certainly help. It makes the rows appear.

Interesting onough, I encounter two other oddidies:

1. I get empty rows inserted into my result document, one for each row
which was there in the input. So if I edit a document with two rows inside
the repeater and I add one row, in my result I will have the two original
rows, the one I added plus two empty rows. Not sure if this is related to
namespaces or a problem with identity management.

2. What certainly relates to namespaces as well: Have a look at this snippet:

<fb:context
  xmlns:fb="http://apache.org/cocoon/forms/1.0#binding";
  xmlns:fd="http://apache.org/cocoon/forms/1.0#definition";
  xmlns:ld="http://apache.org/lenya/pubs/default/1.0";
  xmlns="http://apache.org/lenya/pubs/default/1.0";
  path="/ld:links" >

...

<fb:insert-node>
  <!-- template inserted by the binding for new rows (mapping new nodes) -->
  <link/>
</fb:insert-node>

The <link/> element is not explicitely bound to a namespace, so it will
inherit the xmlns="http://apache.org/lenya/pubs/default/1.0"; namespace,
which is what I want. But if I change this to

<fb:context
  xmlns:fb="http://apache.org/cocoon/forms/1.0#binding";
  xmlns:fd="http://apache.org/cocoon/forms/1.0#definition";
  xmlns:ld="http://apache.org/lenya/pubs/default/1.0";
  path="/ld:links" >

...

<fb:insert-node>
  <!-- template inserted by the binding for new rows (mapping new nodes) -->
  <ld:link/>
</fb:insert-node>

which again in my understanding should be equivalent, I get some strange
output:

<?xml version="1.0" encoding="UTF-8"?>
<links xmlns="http://apache.org/lenya/pubs/default/1.0";>
  <title>Apache Lenya Links</title>
  <link href="http://lenya.apache.org/";>Apache Lenya Website</link>
  <link href="http://wiki.apache.org/lenya/";>Apache Lenya Wiki</link>

  <!-- template inserted by the binding for new rows (mapping new nodes) -->
  <ld:link xmlns:ld="http://apache.org/lenya/pubs/default/1.0"/>

</links>

The serializer obviously thinks that

"http://apache.org/lenya/pubs/default/1.0"; is not the same as

"http://apache.org/lenya/pubs/default/1.0";

???

I wonder if this issues are related or not!

Regards,
Torsten

> Torsten Schlabach wrote:
>
>>Now the repeater does not show any rows any more.
>>
>>Any idea where to search for the probem? Might this even be a bug?
>> Binding
>>simple fields (no repeater) works with and without namespaces.
>>
>>Regards,
>>Torsten
>>
>>
> I have the same problem, and it seems to be a bug in
> RepeaterJXPathBinding.java, but I can't figure out exactly what goes
> wrong.
>
> I managed with my particular case by changing
>
> Iterator rowPointers = repeaterContext.iteratePointers(this.rowPath);
> to
> Iterator rowPointers = jxpc.iteratePointers(this.rowPath);
>
> and setting parent-path to ".", replacing it with a fb:context instead.
>
> A report [34196] is also filed in bugzilla,
> http://issues.apache.org/bugzilla/show_bug.cgi?id=34196
>
> Regards,
> Askild
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to