[opencms-dev] duplicate XSD SchemaType definitions for "OpenCmsVfsImage" in OpenCms

Brabenetz, Harald harald.brabenetz at bearingpointconsulting.com
Fri Jul 9 14:13:22 CEST 2010


There are duplicate XSD SchemaType definitions for "OpenCmsVfsImage" in OpenCms.

opencms.jar#/org/opencms/xml/types/XmlVfsFileValue.xsd:
---------------------------------
<xsd:complexType name="OpenCmsVfsImage">
    <xsd:sequence>
        <xsd:element name="link" type="OpenCmsReference" minOccurs="0" maxOccurs="1" />
    </xsd:sequence>
    <xsd:attribute name="name" type="xsd:string" use="optional" />
    <xsd:attribute name="enabled" type="xsd:boolean" use="optional" />
</xsd:complexType>
---------------------------------

opencms.jar#/org/opencms/xml/types/XmlVfsImageValue.xsd:
---------------------------------
<xsd:complexType name="OpenCmsVfsImage">
    <xsd:sequence>
        <xsd:element name="link" type="OpenCmsReference" minOccurs="0" maxOccurs="1" />
        <xsd:element name="description" type="OpenCmsString" minOccurs="0" maxOccurs="1" />
        <xsd:element name="format" type="OpenCmsString" minOccurs="0" maxOccurs="1" />
        <xsd:element name="scale" type="OpenCmsString" minOccurs="0" maxOccurs="1" />
    </xsd:sequence>
    <xsd:attribute name="name" type="xsd:string" use="optional" />
    <xsd:attribute name="enabled" type="xsd:boolean" use="optional" />
</xsd:complexType>
---------------------------------

I found this because I got the Error "Invalid content element 'scale'. No child element is expected at this point" during saving a cropped image.
Now I use the OpenCmsVfsFile element and it works fine.
Should I create a Bug-Report?


INFONOVA GmbH
Sitz: Unterpremst?tten bei Graz
Firmenbuchgericht: Landesgericht f?r ZRS Graz
Firmenbuchnummer: FN 44354b



More information about the opencms-dev mailing list