--
thorsten
"Together we stand, divided we fall!"
Hey you (Pink Floyd)
--- Begin Message ---
Did you try
<myns:links xmlns:my="http://my/namespace" >
<myns:title>The name of the linklist</my:title>
<myns:link href="http://www.google.de/">Google</my:link>
<myns:link href="http://www.yahoo.de/">Yahoo</my:link>
<myns:links>
which would match:
<fb:repeater id="contacts"
> parent-path="/myns:links"
> row-path="myns:link">
;-)
HTH
salu2
On Sat, 2005-03-26 at 18:46 +0100, Torsten Schlabach wrote:
> 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]
>
--
thorsten
"Together we stand, divided we fall!"
Hey you (Pink Floyd)
--- End Message ---
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]