Hi all,

I have an XML document that I would like to edit using a CForm.

In the first iteration, it looks like this:

<links>
  <title>The name of the linklist</title>
  <link href="http://www.google.de/";>Google</link>
  <link href="http://www.yahoo.de/";>Yahoo</link>
<links>

Note: No namespaces.

I use this kind of binding:

  <fb:repeater id="contacts"
    parent-path="/links"
    row-path="link">

    <fb:value id="ID" path="@id" />
    <fb:value id="text" path="." />
    <fb:value id="url"  path="@href" />

  ...

Works as expected.

No I introduce a namespace to my document:

<links xmlns="http://my/namespace"; >
  <title>The name of the linklist</title>
  <link href="http://www.google.de/";>Google</link>
  <link href="http://www.yahoo.de/";>Yahoo</link>
<links>

I have changed my binding:

  <fb:context
    xmlns:fb="http://apache.org/cocoon/forms/1.0#binding";
    xmlns:fd="http://apache.org/cocoon/forms/1.0#definition";
    xmlns:myns="http://my/namespace";
    path="/" >

  <fb:repeater id="contacts"
    parent-path="/myns:links"
    row-path="myns:link">

    <fb:value id="ID" path="@id" />
    <fb:value id="text" path="." />
    <fb:value id="url"  path="@href" />

  ...

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



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

Reply via email to