cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Colin Paul Adams <>
Subject CForms Binding to XML file sample
Date Fri, 02 Jul 2004 09:31:55 GMT
It seems to me there is something seriously wrong with the binding to
xml file sample.

If I add a new row to the table at the bottom, I get the following XML

<email boolBindingWorks="false"></email>
<number value="3"/>
<choose value="true"/>
	<phone cntr="32">
<ipaddress changed="false"></ipaddress>
	<contact id="1" row-state="original">
<phone nr="+32-2-2222222"/>
	<contact id="2" row-state="original">
<phone nr="+32-59-595959"/>
 template inserted by the binding for new rows (mapping new nodes) 
	<contact id="" row-state="new">
<phone nr="+44-1772-498247"/>

Note that the id field for the new row is an empty attribute.

This is no good - if the repeater widget requires unique ids (and note
that these if attributes are not of type ID or xs:ID as they do not
begin with a letter, but that's another issue), then why is there not
an id assigned to the new row?

If two rows were added, immediately  the ids would no longer be
And if this data file were read in again, there would be a problem.
Colin Paul Adams
Preston Lancashire

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message