It works ^^<br>Just like i want !!!<br><br>Thanks all for your help !!<br><br><br><div class="gmail_quote">2008/5/6 TechnoSophos <<a href="mailto:technosophos@gmail.com">technosophos@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;">
Change the language xsd:attribute:<br>
<br>
<xsd:attribute name="language" type="OpenCmsLocale" use="optional"/><br>
<br>
(The important thing is use="optional")<br>
<br>
For a very good example, look at the article.schema and<br>
paragraph.schema files in the templatetwo.demo project.<br>
<br>
<br>
Matt<br>
<div><div></div><div class="Wj3C7c"><br>
On Tue, May 6, 2008 at 7:51 AM, Territorio Jordan-V.<br>
<<a href="mailto:jordan.territorio@gmail.com">jordan.territorio@gmail.com</a>> wrote:<br>
> Finally it seems the good way is that...<br>
><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<br>
> 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<br>
> the button "add new" an exception is throwed :<br>
>  <errors><br>
> <error column="18" line="5">cvc-complex-type.4: Attribute 'language' must<br>
> appear on element 'AntargazNew'.</error><br>
><br>
><br>
> </errors><br>
><br>
><br>
> 2008/5/6 Territorio Jordan-V. <<a href="mailto:jordan.territorio@gmail.com">jordan.territorio@gmail.com</a>>:<br>
> > For the newslist.xsd i've tried this too :<br>
> ><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><br>
> >             <xsd:element name="AntargazNew" type="OpenCmsAntargazNew"/><br>
> ><br>
> >         </xsd:sequence><br>
> >         <xsd:attribute name="language" type="OpenCmsLocale"<br>
> >             use="required" /><br>
> >     </xsd:complexType><br>
> ><br>
> ><br>
> > 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<br>
> 'MyNewsList' is not complete. One of '{AntargazNew}' is expected.</error><br>
> > </errors><br>
> ><br>
> ><br>
> ><br>
> > 2008/5/6 Territorio Jordan-V. <<a href="mailto:jordan.territorio@gmail.com">jordan.territorio@gmail.com</a>>:<br>
> ><br>
> ><br>
> ><br>
> ><br>
> > > It's hard to know when remove when keep... but i still have the error.<br>
> :'(<br>
> > > That's great we have noticed 5 ways for "how to not make a correct list<br>
> of some complex type with opencms"...<br>
> > ><br>
> > > fu.... CMS !!!! lol<br>
> > ><br>
> > > for the moment that's what i have with your correction :<br>
> > ><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>
> > ><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" minOccurs="0"<br>
> 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>
> > > ...<br>
> > ><br>
> > > antargaz_newslist.xsd<br>
> > ><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>
> > ><br>
> > >     <xsd:include schemaLocation="opencms://opencms-xmlcontent.xsd" /><br>
> > ><br>
> > >     <xsd:include<br>
> > ><br>
> schemaLocation="opencms://system/modules/org.antargaz.modules.first/schemas/antargaz_news.xsd"<br>
> /><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>
> > >             <xsd:element name="OpenCmsAntargazNew"<br>
> type="OpenCmsAntargazNew"/><br>
> > ><br>
> > >         </xsd:sequence><br>
> > >         <xsd:attribute name="language" type="OpenCmsLocale"<br>
> > >             use="required" /><br>
> > >     </xsd:complexType><br>
> > > </xsd:schema><br>
> > ><br>
> > ><br>
> ><br>
> ><br>
> ><br>
> ><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><br>
><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><br>
><br>
</div></div><div><div></div><div class="Wj3C7c">>  _______________________________________________<br>
>  This mail is sent to you from the opencms-dev mailing list<br>
>  To change your list options, or to unsubscribe from the list, please visit<br>
>  <a href="http://lists.opencms.org/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><br>
><br>
<br>
_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><br>
</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>