Hi,<br><br>I try to make a schemas for editing some blocks of informations, with: a title, a text and an image. So i created a xsd schemas to be able to create structured as I want. Here is my info_article.xsd :<br><br><xsd:schema xmlns:xsd="<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>"<br>
elementFormDefault="qualified"><br><br> <xsd:include schemaLocation="opencms://opencms-xmlcontent.xsd" /><br><br> <xsd:element name="MyNews" type="OpenCmsMyNews" /><br>
<br> <xsd:complexType name="OpenCmsMyNews"><br> <xsd:sequence><br> <xsd:element name="MyNew" type="OpenCmsMyNew"<br> minOccurs="0" maxOccurs="unbounded" /><br>
</xsd:sequence><br> </xsd:complexType><br><br> <xsd:complexType name="OpenCmsMyNew"><br> <xsd:sequence minOccurs="0" maxOccurs="unbounded"><br> <xsd:element name="Title" type="OpenCmsString" /><br>
<xsd:element name="Image" type="OpenCmsVfsFile"<br> minOccurs="0" maxOccurs="1" /><br> <xsd:element name="Text" type="OpenCmsHtml"/><br>
<xsd:element name="Image" type="OpenCmsVfsFile"<br> minOccurs="0" maxOccurs="1" /><br> </xsd:sequence><br> <xsd:attribute name="language" type="OpenCmsLocale"<br>
use="required" /><br> </xsd:complexType><br><br> <xsd:annotation><br> <xsd:appinfo><br> <mappings><br> <mapping element="Title" mapto="property:Title" /><br>
</mappings><br> <layouts><br> <layout element="Image" widget="ImageGalleryWidget" /><br> </layouts><br> </xsd:appinfo><br>
</xsd:annotation><br></xsd:schema><br><br>The problem is when I edit news pages, the Editor just show one block "OpenCmsMyNew" and I can't build an other... If I modify the code in this way :<br>
<xsd:element name="Text" type="OpenCmsHtml" minOccurs="0" maxOccurs="unbounded"/><br>I'm able to create as many paragraph as i want, but i cant do the same thing with the "MyNew" block...<br>
<br>Is there somebody to help ?<br clear="all"><br>Anyway, someone could tell me why this is forbidden :<br><xsd:complexType name="OpenCmsMyNews"><br>
<xsd:sequence><br> <xsd:element name="Title" type="OpenCmsString" /> <!-- a main title and an introduction before displaying news --><br> <xsd:element name="Text" type="OpenCmsHtml"/><br>
<xsd:element name="MyNew" type="OpenCmsMyNew"<br>
minOccurs="0" maxOccurs="unbounded" /><br>
</xsd:sequence><br>
</xsd:complexType><br>
<br>
<xsd:complexType name="OpenCmsMyNew"><br>
<xsd:sequence minOccurs="0" maxOccurs="unbounded"><br>
<xsd:element name="Title" type="OpenCmsString" /><br>
<xsd:element name="Image" type="OpenCmsVfsFile"<br>
minOccurs="0" maxOccurs="1" /><br>
<xsd:element name="Text" type="OpenCmsHtml"/><br>
<xsd:element name="Image" type="OpenCmsVfsFile"<br>
minOccurs="0" maxOccurs="1" /><br>
</xsd:sequence><br>
<xsd:attribute name="language" type="OpenCmsLocale"<br>
use="required" /><br>
</xsd:complexType><br><br>thank you all<br><br><br>-- <br>TERRITORIO Jordan-Victor<br>Ingénieur d'Intégration Java<br>TEAMLOG – Ingenieurs 2000<br><br>+33 6 30 66 54 69<br><a href="mailto:jot@teamlog.com">jot@teamlog.com</a>