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

Paul-Inge Flakstad flakstad at npolar.no
Mon Feb 8 15:43:55 CET 2010


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20100208/0359c23b/attachment.htm>


More information about the opencms-dev mailing list