[opencms-dev] Mapping multiple nested elements to a propertyList
Paul-Inge Flakstad
flakstad at npolar.no
Tue Nov 4 12:57:01 CET 2014
Hi Diogo,
I am not sure about this, but try removing the mapping in your inner XSD.
Mapping to propertyList only make sense for repeating elements, and in your inner XSD you are mapping a non-repeating element (it implicitly has minOccurs="1" maxOccurs="1").
Cheers,
Paul
From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Diogo Rezende Brant
Sent: 3. november 2014 11:12
To: opencms-dev at opencms.org
Subject: [opencms-dev] Mapping multiple nested elements to a propertyList
Hi,
I'm trying to map multiple dates from a nested elements using a propertyList.
In my outer xsd i have:
<xsd:element name="BlocoDia" type="OpenCmsBlocoDia" minOccurs="1" maxOccurs="unbounded" />
And mapping:
<mapping element="BlocoDia/DataInicio" mapto="propertyList:collector.date" />
In my inner xsd:
<xsd:element name="DataInicio" type="OpenCmsString" />
And mapping:
<mapping element="DataInicio" mapto="propertyList:collector.date" />
The problem is only one element is mapped. How can I map every element?
Thanks!
Att,
Diogo Rezende Brant
Analista Desenvolvedor
Squadra | Tecnologia inovando o seu negócio
Belo Horizonte - Minas Gerais
Geral: 55 (31) 2104.7800 - R 7847
Cel: 55 (31) 9776-0366
___________________________________________
E-mail: diogo.brant at squadra.com.br<mailto:diogo.brant at squadra.com.br>
www.squadra.com.br<http://emrede.squadra.com.br/> | Certificada - CMMI
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20141104/87343263/attachment.htm>
More information about the opencms-dev
mailing list