[opencms-dev] Category mapping from nested XSD Schema

Siegfried Ehret s.ehret at eurelis.com
Fri Mar 29 11:44:07 CET 2013


Hi all,

Hi found here : http://www.opencms-wiki.org/wiki/XMLContent#Mapping_elements_to_properties that I can map multiple categories to
<mappings>
  <mapping element="Category" mapto="propertyList:collector.categories" />
</mappings>

I would looove to use it for my case :
I have a Campaign. This campaign have multiple Content nested element. Each Content has a Type (Category) and a Text.

I tried this in the Campaign element :
<mappings>
  <mapping element="Content/Type" mapto="propertyList:collector.categories" />
</mappings>

I also tried this in the nested Content element :
<mappings>
  <mapping element="Type" mapto="propertyList:collector.categories" />
</mappings>

But everything fails miserably.

Is there a way to set a mapping for a category (or a property, I can use this also) from a nested schema ?

Thanks !

Siegfried Ehret
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20130329/60f4fbb4/attachment.htm>


More information about the opencms-dev mailing list