<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=NO-BOK link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Hi Diogo,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>I am not sure about this, but try removing the mapping in your inner XSD.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>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”).<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Cheers,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Paul<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> opencms-dev-bounces@opencms.org [mailto:opencms-dev-bounces@opencms.org] <b>On Behalf Of </b>Diogo Rezende Brant<br><b>Sent:</b> 3. november 2014 11:12<br><b>To:</b> opencms-dev@opencms.org<br><b>Subject:</b> [opencms-dev] Mapping multiple nested elements to a propertyList<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=PT-BR style='color:#1F497D'>Hi,<o:p></o:p></span></p><p class=MsoNormal><span lang=PT-BR style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=PT-BR style='color:#1F497D'>I'm trying to map multiple dates from a nested elements using a propertyList.<o:p></o:p></span></p><p class=MsoNormal><span lang=PT-BR style='color:#1F497D'>In my outer xsd i have:<o:p></o:p></span></p><p class=MsoNormal><span lang=PT-BR style='color:#1F497D'><xsd:element name="BlocoDia" type="OpenCmsBlocoDia" minOccurs="1" maxOccurs="unbounded" /><o:p></o:p></span></p><p class=MsoNormal><span lang=PT-BR style='color:#1F497D'>And mapping:<o:p></o:p></span></p><p class=MsoNormal><span lang=PT-BR style='color:#1F497D'><mapping element="BlocoDia/DataInicio" mapto="propertyList:collector.date" /><o:p></o:p></span></p><p class=MsoNormal><span lang=PT-BR style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=PT-BR style='color:#1F497D'>In my inner xsd:<o:p></o:p></span></p><p class=MsoNormal><span lang=PT-BR style='color:#1F497D'><xsd:element name="DataInicio" type="OpenCmsString" /><o:p></o:p></span></p><p class=MsoNormal><span lang=PT-BR style='color:#1F497D'>And mapping:<o:p></o:p></span></p><p class=MsoNormal><span lang=PT-BR style='color:#1F497D'><mapping element="DataInicio" mapto="propertyList:collector.date" /><o:p></o:p></span></p><p class=MsoNormal><span lang=PT-BR style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=PT-BR style='color:#1F497D'>The problem is only one element is mapped. How can I map every element?<o:p></o:p></span></p><p class=MsoNormal><span lang=PT-BR><o:p> </o:p></span></p><p class=MsoNormal><span lang=PT-BR style='color:#1F497D'>Thanks!<o:p></o:p></span></p><p class=MsoNormal><span lang=PT-BR><o:p> </o:p></span></p><p class=MsoNormal><span lang=PT-BR><o:p> </o:p></span></p><p class=MsoNormal><span lang=PT-BR style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=PT-BR style='color:#1F497D'>Att,<o:p></o:p></span></p><p class=MsoNormal><b><span lang=PT-BR style='font-size:8.0pt;font-family:"Verdana","sans-serif";color:#404040'><o:p> </o:p></span></b></p><p class=MsoNormal><b><span lang=PT-BR style='font-size:8.0pt;font-family:"Verdana","sans-serif";color:#404040'>Diogo Rezende Brant<o:p></o:p></span></b></p><p class=MsoNormal><span lang=PT-BR style='font-size:8.0pt;font-family:"Verdana","sans-serif";color:#404040'>Analista Desenvolvedor<b><br></b></span><span lang=PT-BR style='font-size:8.0pt;font-family:"Verdana","sans-serif";color:#4D4D4D'><br></span><b><span lang=PT-BR style='font-size:8.0pt;font-family:"Verdana","sans-serif";color:#0070C0'>Squadra | Tecnologia inovando o seu negócio <br></span></b><span lang=PT-BR style='font-size:8.0pt;font-family:"Verdana","sans-serif";color:#0070C0'>Belo Horizonte - Minas Gerais<b><br></b></span><b><span lang=PT-BR style='font-size:8.0pt;font-family:"Verdana","sans-serif";color:#3366CC'><br></span></b><span lang=PT-BR style='font-size:8.0pt;font-family:"Verdana","sans-serif";color:#404040'>Geral: 55 (31) 2104.7800 - R 7847<o:p></o:p></span></p><p class=MsoNormal><span lang=PT-BR style='font-size:8.0pt;font-family:"Verdana","sans-serif";color:#404040'>Cel: 55 (31) 9776-0366</span><span lang=PT-BR style='color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:12.0pt'><span lang=PT-BR style='font-size:8.0pt;font-family:"Verdana","sans-serif";color:#0070C0'>___________________________________________</span><b><span lang=PT-BR style='font-size:8.0pt;font-family:"Verdana","sans-serif";color:#404040'><o:p></o:p></span></b></p><p class=MsoNormal><b><span lang=PT-BR style='font-size:8.0pt;font-family:"Verdana","sans-serif";color:#404040'><br></span></b><span lang=PT-BR style='font-size:8.0pt;font-family:"Verdana","sans-serif";color:#404040'>E-mail: </span><u><span lang=PT-BR style='font-size:8.0pt;font-family:"Verdana","sans-serif";color:#1F497D'><a href="mailto:diogo.brant@squadra.com.br">diogo.brant@squadra.com.br</a></span></u><u><span lang=PT-BR style='font-size:8.0pt;font-family:"Verdana","sans-serif";color:#0070C0'><o:p></o:p></span></u></p><p class=MsoNormal><span lang=PT-BR style='font-size:8.0pt;font-family:"Verdana","sans-serif";color:#404040'><br></span><b><u><span lang=PT-BR style='font-size:8.0pt;font-family:"Verdana","sans-serif";color:#1F497D'><a href="http://emrede.squadra.com.br/"><span style='font-weight:normal'>www.squadra.com.br</span></a></span></u></b><b><span lang=PT-BR style='font-size:8.0pt;font-family:"Verdana","sans-serif";color:#404040'> | Certificada – CMMI</span></b><span lang=PT-BR style='font-size:12.0pt;font-family:"Verdana","sans-serif";color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span lang=PT-BR><o:p> </o:p></span></p></div></body></html>