It seems that the collection of references works well if the container attribute on the field element is not set, but if you put container="false" it fails :


<field name="collection" type="Element" collection="collection">
<bind-xml reference="true"/>
</field>

<root>
<collection>ref1</collection>
<collection>ref2</collection>
<collection>ref3</collection>
</root>

and with container="false" :

<field name="collection" type="Element" collection="collection" container="false">
<bind-xml reference="true"/>
</field>

<root>
<collection>
<element id="ref1">
<child>value1</child>
</element>
<element id="ref2">
<child>value2</child>
</element>
<element id="ref3">
<child>value3</child>
</element>
</collection>
</root>

but i expected this :

<root>
<collection>
<element>ref1</element>
<element>ref2</element>
<element>ref3</element>
</collection>
</root>

Emmanuel

----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev

Reply via email to