cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Torsten Schlabach" <tschlab...@apache.org>
Subject [CForms] XML binding - repeater - namespace problem
Date Sat, 26 Mar 2005 17:46:50 GMT
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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message