[opencms-dev] xsd:choice doesn´t work after upgrade from 8.0.2 to 8.0.4

amjed.bensalah at abs-soft.net amjed.bensalah at abs-soft.net
Thu Jul 25 11:14:01 CEST 2013


Hello Alkacon,

After Opencms-Upgrade from version 8.0.2 to version 8.0.4, the xsd:choice
doesn´t work anymore in my contenttypes. there are no errors in my logs
when I start Tomcat or open the Editor, when I open the Editor the "+" new
Icon appears, when I click on it nothing happens (also no errors in the
logs). Is it a known issue of opencms 8.0.4? Here my XML Code:

homepage.xsd:

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">


	<xsd:include schemaLocation="opencms://opencms-xmlcontent.xsd"/>
	<xsd:include
schemaLocation="opencms://.../schemas/includes/teaser-choice.xsd"/>

	<xsd:element name="Homepages" type="OpenCmsHomepages"/>

	<xsd:complexType name="OpenCmsHomepages">
		<xsd:sequence>
			<xsd:element name="Homepage" type="OpenCmsHomepage" minOccurs="0"
maxOccurs="unbounded"/>
		</xsd:sequence>
	</xsd:complexType>

	<xsd:complexType name="OpenCmsHomepage">

		<xsd:sequence>
				<xsd:element name="TeaserChoice" type="OpenCmsTeaserChoice"
minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>

		<xsd:attribute name="language" type="OpenCmsLocale" use="required"/>
	</xsd:complexType>

<xsd:annotation>
		<xsd:appinfo>
			<resourcebundle name="com.lh.bmo.frontend.workplace"/>
			<preview uri="${previewtempfile}"/>
			<validationrules/>
			<mappings/>
			<layouts/>
			<defaults/>
		</xsd:appinfo>
	</xsd:annotation>

</xsd:schema>


teaser-choice.xsd:

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">

	<xsd:include schemaLocation="opencms://opencms-xmlcontent.xsd"/>

	<xsd:element name="TeaserChoices" type="OpenCmsTeaserChoices"/>

	<xsd:complexType name="OpenCmsTeaserChoices">
		<xsd:sequence>
			<xsd:element name="TeaserChoice" type="OpenCmsTeaserChoice"
minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
	</xsd:complexType>

	<xsd:complexType name="OpenCmsTeaserChoice">
			<xsd:choice>
					<xsd:element name="ImageTextTeaserOne" type="OpenCmsVfsFile"
minOccurs="0" maxOccurs="1"/>
					<xsd:element name="TextTeaser" type="OpenCmsVfsFile" minOccurs="0"
maxOccurs="1"/>
					<xsd:element name="LinkListTeaser" type="OpenCmsVfsFile"
minOccurs="0" maxOccurs="1"/>
			</xsd:choice>
		<xsd:attribute name="language" type="OpenCmsLocale" use="optional"/>
	</xsd:complexType>

	<xsd:annotation>
		<xsd:appinfo>
			<resourcebundle name="com.lh.bmo.frontend.workplace"/>
			<validationrules/>
			<mappings/>
			<layouts/>
			<defaults/>
		</xsd:appinfo>
	</xsd:annotation>

</xsd:schema>

Can someone help me please?

Regards

Amjed




More information about the opencms-dev mailing list