Finally it seems the good way is that...<br><xsd:complexType name="OpenCmsMyNewsList"><br> <xsd:sequence><br> <xsd:element name="AntargazNew" type="OpenCmsAntargazNew"<br>
minOccurs="0" maxOccurs="unbounded" /><br> </xsd:sequence><br> <xsd:attribute name="language" type="OpenCmsLocale"<br> use="required" /><br>
</xsd:complexType><br><br> but i still have this error with the language when i edit a new structured content "NewsList" and i really don't know what to do ...<br>The editor appeared with the possibility to add a new block, but when i push the button "add new" an exception is throwed :<br>
<errors><br><error column="18" line="5">cvc-complex-type.4:
Attribute 'language' must appear on element
'AntargazNew'.</error><br></errors><br><br><br><div class="gmail_quote">2008/5/6 Territorio Jordan-V. <<a href="mailto:jordan.territorio@gmail.com">jordan.territorio@gmail.com</a>>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
For the newslist.xsd i've tried this too :<div class="Ih2E3d"><br><br><xsd:element name="MyNewsLists" type="OpenCmsMyNewsLists" /><br><br> <xsd:complexType name="OpenCmsMyNewsLists"><br>
<xsd:sequence><br>
<xsd:element name="MyNewsList" type="OpenCmsMyNewsList" minOccurs="0" maxOccurs="unbounded" /><br> </xsd:sequence><br> </xsd:complexType><br>
<br> <xsd:complexType name="OpenCmsMyNewsList"><br> <xsd:sequence><br></div> <xsd:element name="AntargazNew" type="OpenCmsAntargazNew"/><div class="Ih2E3d">
<br> </xsd:sequence><br>
<xsd:attribute name="language" type="OpenCmsLocale"<br> use="required" /><br> </xsd:complexType><br><br><br></div>But i obtained :<br>XML validation error : <br>
<errors><br>
<error column="30"
line="4">cvc-complex-type.2.4.b: The content of element 'MyNewsList' is not
complete. One of '{AntargazNew}' is
expected.</error><br></errors><br><br><br><div class="gmail_quote">2008/5/6 Territorio Jordan-V. <<a href="mailto:jordan.territorio@gmail.com" target="_blank">jordan.territorio@gmail.com</a>>:<div><div>
</div><div class="Wj3C7c"><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
It's hard to know when remove when keep... but i still have the error. :'(<br>That's great we have noticed 5 ways for "how to not make a correct list of some complex type with opencms"... <br><br>fu.... CMS !!!! lol<br>
<br>for the moment that's what i have with your correction :<div><br>antargaz_news.xsd<br><xsd:include schemaLocation="opencms://opencms-xmlcontent.xsd" /><br> <xsd:element name="AntargazNews" type="OpenCmsAntargazNews" /><br>
<br> <xsd:complexType name="OpenCmsAntargazNews"><br> <xsd:sequence><br> <xsd:element name="AntargazNew" type="OpenCmsAntargazNew"<br> minOccurs="0" maxOccurs="unbounded" /><br>
</xsd:sequence><br> </xsd:complexType><br><br> <xsd:complexType name="OpenCmsAntargazNew"><br> <xsd:sequence><br></div><div> <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" minOccurs="0" maxOccurs="unbounded"/><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></div>...<br><br>antargaz_newslist.xsd<div><br><xsd:schema xmlns:xsd="<a href="http://www.w3.org/2001/XMLSchema" target="_blank">http://www.w3.org/2001/XMLSchema</a>"<br>
elementFormDefault="qualified"><br><br></div><div> <xsd:include schemaLocation="opencms://opencms-xmlcontent.xsd" /><br></div><div> <xsd:include<br>
schemaLocation="opencms://system/modules/org.antargaz.modules.first/schemas/antargaz_news.xsd" /><br>
<br> <xsd:element name="MyNewsLists" type="OpenCmsMyNewsLists" /><br><br> <xsd:complexType name="OpenCmsMyNewsLists"><br> <xsd:sequence><br> <xsd:element name="MyNewsList" type="OpenCmsMyNewsList"<br>
minOccurs="0" maxOccurs="unbounded" /><br> </xsd:sequence><br> </xsd:complexType><br><br> <xsd:complexType name="OpenCmsMyNewsList"><br> <xsd:sequence minOccurs="0" maxOccurs="unbounded"><br>
</div>
<xsd:element name="OpenCmsAntargazNew" type="OpenCmsAntargazNew"/><div><br> </xsd:sequence><br> <xsd:attribute name="language" type="OpenCmsLocale"<br>
use="required" /><br> </xsd:complexType><br></div></xsd:schema><br><br>
</blockquote></div></div></div><br><br clear="all"><div><div></div><div class="Wj3C7c"><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" target="_blank">jot@teamlog.com</a>
</div></div></blockquote></div><br><br clear="all"><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>