[opencms-dev] Mapping multiple values to a single property

Achim Westermann achim.westermann at questico.de
Mon Feb 8 15:52:09 CET 2010

Hi Paul,

try something like:




Paul-Inge Flakstad wrote:
> Hi
> I'm working with categories, and in my XSD I would like to map the 
> multiple values of a re-occuring category element to a single property. 
> (I know this question has been asked before, but searching didn't 
> provide any good answer.)
> If I put e.g.:
>     <xsd:element name="Category" type="OpenCmsString" minOccurs="0" 
> maxOccurs="10" />
>     ...
>     <mapping element="Category" mapto="property:collector.categories" />
> then only the first category is mapped to the property 
> "collector.categories".
> The OpenCms 6.0.2 release notes say "XML content mappings can map 
> multiple occurrences of a value to a property list value". That sounds 
> about right for what I'm looking for, but how do I configure this in my XSD?
> Best regards,
> Paul
> ------------------------------------------------------------------------
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev

Vorstand: Sylvius Bardt (Vors.), Tim Schiffers, Dr. Ulrich Kohl, Michael Knapstein
Aufsichtsratsvorsitzender: Michael W├Âlfle

More information about the opencms-dev mailing list