[opencms-dev] Defining OpenCMS structured XML content

Francesco gamagnolo at libero.it
Sat Mar 29 00:43:17 CET 2008


I was studying the module's development, and I'm blocked here http://opencms-wiki.org/Defining_OpenCMS_structured_XML_content#Step_1_.E2.80.93_Create_the_module_and_configure_it .
I followed exactly those passages, but,when I choose my new xml content type that I created, OpenCms give me this errore: " Invalid OpenCms content definition XML schema structure:
"Schema" node expected."
Repeat: I've done exatcly that written in the link above.And I don't seem schema node is missing...
Anyway, here's my .xsd placed in the schemas folder:
<?xml version="1.0" encoding="UTF-8"?>

<xsd:schema xmlns:xsd="http://www.w3c.org/2001/XMLSchema" elementFormDefault="qualified">

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

 <xsd:element name="AccessibilityTypes" type="OpenCmsAccessibilityTypes"/>

 <xsd:complexType name="OpenCmsAccessibilityTypes">

  <xsd:sequence>
 
   <xsd:element name="Accessibility" type="OpenCmsAccessibility" minOccurs="0" maxOccurs="unbounded"/>

  </xsd:sequence>

 </xsd:complexType>

 <xsd:complexType name="OpenCmsAccessibility">

  <xsd:sequence>
 
   <xsd:element name="Title" type="OpenCmsString" />
   <xsd:element name="Teaser" type="OpenCmsString" maxOccurs="3"/>
   <xsd:element name="Text" type="OpenCmsHtml" />

  </xsd:sequence>

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

 </xsd:complexType>

</xsd:schema>

I tried anything but I can't understand where's the error...
Someone has already got this problem?
Thank you very much!
Francesco Fabi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20080329/b2bff2c4/attachment.htm>


More information about the opencms-dev mailing list