[opencms-dev] syntax in .xsd schemata

Lorenz Lammersdorf lorenz.lammersdorf at kernbrand.ch
Mon Nov 16 10:33:14 CET 2015


no. if you've defined and included OpenCmsMyCompanyLink, it'll be the 
same in all schemas.

do you need to have different types in your schemas?

btw: at least in older versions of opencms (i'm not sure about 9.x) you 
should give all elements unique names.

regards
lorenz

Am 16.11.2015 um 10:13 schrieb Christoph Kukulies:
> I have a .xsd schema description like
> mycompany_head.xsd
>
> and in that I have
>
> <xsd:complexType name="OpenCmsMyCompanyHead">
>          <xsd:sequence>
>              <xsd:element name="Title" type="OpenCmsString" />
>              <xsd:element name="Link" type="OpenCmsMyCompanyLink"
> maxOccurs="8"/>
>          </xsd:sequence>
>          <xsd:attribute name="language" type="OpenCmsLocale"
> use="required"/>
>      </xsd:complexType>
>
> Is OpenCmsMyCompanyLink unique to that .xsd? In other words: if I create
> a copy of that .xsd in /schemas
> giving it the name other_something.xsd, does type="OpenCmsMyCompanyLink"
> then become
> type="OpenCmsOtherLink"?
>



More information about the opencms-dev mailing list