[opencms-dev] XSD: How to map an image description?

Mathias Lin mail at mathiaslin.com
Tue Nov 17 12:37:11 CET 2009


I think it should be
<mapping element="Image/Description" mapto="property:Title" />
then.
Regards,
Mathias


Oliver Berse wrote:
> Hello all,
>
> I have a simple xsd schema for employee data:
>
>     <xsd:complexType name="OpenCmsCompanyStaff">
>         <xsd:sequence>
>             <xsd:element name="Image" type="OpenCmsImage" />
>             <xsd:element name="Text" type="OpenCmsHtml" />     
>         </xsd:sequence>
>         <xsd:attribute name="language" type="OpenCmsLocale" 
> use="required"/>
>     </xsd:complexType>
>    
> The ImageWidget has a description field which I want to use for the 
> name of the employee.
>
> Problem:
> I want to map the employee name (image description) to the title 
> property of the structured content file.
> This does not work:
>
> <mappings>
>     <mapping element="Image" mapto="property:Title" />
> </mappings>
>
> Any idea how to map the image description?
>
> best regards,
> Oliver




More information about the opencms-dev mailing list