I changed it but this appears :<br>XML validation error : <br><errors><br><error column="11"
line="5">cvc-complex-type.4: Attribute 'language' must appear on element
'News'.</error><br></errors><br><br>But I think there already this attribute set, doesn't it?<br>... :s i know i'm noob but opencms is going to make me crazy ^^<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> <!-- INCLUDE your OpenCmsMyNew XSD file here --><br> <xsd:include 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>
<xsd:element name="News" type="OpenCmsMyNew"<br> minOccurs="0" maxOccurs="unbounded" /><br> </xsd:sequence><br> <span style="color: rgb(51, 51, 255);"><xsd:attribute name="language" type="OpenCmsLocale"</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);"> use="required" /></span><br> </xsd:complexType><br></xsd:schema><br><br><br><br><div class="gmail_quote">2008/5/6 Bozidar Ilievski <<a href="mailto:bozidar.ilievski@netcetera.com.mk">bozidar.ilievski@netcetera.com.mk</a>>:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d"><br>
Territorio Jordan-V. wrote:<br>
> It's loaded, it was the path to the MyNew.xsd.<br>
><br>
> But i have always the same problem than in the first file. I can't add a<br>
> new "MyNew" block... I can have multiples Text block in the MyNew block<br>
> but no multiples block MyNew in the MyList.xsd...<br>
><br>
> In fact i have exactly the same result than the beginning :s<br>
><br>
> 2008/5/6 Bozidar Ilievski <<a href="mailto:bozidar.ilievski@netcetera.com.mk">bozidar.ilievski@netcetera.com.mk</a><br>
</div>> <mailto:<a href="mailto:bozidar.ilievski@netcetera.com.mk">bozidar.ilievski@netcetera.com.mk</a>>>:<br>
<div><div></div><div class="Wj3C7c">><br>
> Hi.<br>
><br>
> Territorio Jordan-V. wrote:<br>
> > I must do something wrong...<br>
> ><br>
> > org.opencms.xml.CmsXmlException: Unmarshalling XML document failed.<br>
> > at<br>
> org.opencms.xml.CmsXmlUtils.unmarshalHelper(CmsXmlUtils.java:654)<br>
> > at<br>
> org.opencms.xml.CmsXmlUtils.unmarshalHelper(CmsXmlUtils.java:617)<br>
> ><br>
> > here is the new code for the list :<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>
> > <xsd:include schemaLocation="opencms://opencms-xmlcontent.xsd" /><br>
> > <!-- I think the problem is there... --><br>
> > <xsd:include schemaLocation="./antargaz_news.xsd" /><br>
><br>
> I usually enter the absolute location of the referenced schema file:<br>
> Example:<br>
> <xsd:include schemaLocation="opencms://system/.../my_schema.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>
> > <xsd:element name="News" type="OpenCmsNew"<br>
><br>
> or maybe this is your problem.<br>
> In the previous post, your type was OpenCmsMyNew, not OpenCmsNew.<br>
><br>
> > minOccurs="0" maxOccurs="1" /><br>
<br>
</div></div>This is the reason why you can't add multiple MyNew blocks.<br>
<br>
Set maxOccurs="unbounded", and it will work.<br>
<div class="Ih2E3d"><br>
> > </xsd:sequence><br>
> > <xsd:attribute name="language" type="OpenCmsLocale"<br>
> > use="required" /><br>
> > </xsd:complexType><br>
> > </xsd:schema><br>
> ><br>
<br>
</div>--<br>
<div><div></div><div class="Wj3C7c">Bozidar Ilievski | <a href="mailto:bozidar.ilievski@netcetera.com.mk">bozidar.ilievski@netcetera.com.mk</a><br>
phone +389 -2- 30 64 532 | fax +389 -2- 30 79 495<br>
Netcetera | 1000 Skopje | Macedonia | <a href="http://netcetera.com.mk" target="_blank">http://netcetera.com.mk</a><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>