[opencms-dev] Defining OpenCMS structured XML content
Bozidar Ilievski
bozidar.ilievski at netcetera.com.mk
Mon Mar 31 09:47:23 CEST 2008
Hi.
If this is your XSD file, than it is not correct.
The second element you define:
<xsd:element name="Accessibility" type="OpenCmsAccessibility"
minOccurs="0" maxOccurs="unbounded"/>
should be:
<xsd:element name="AccessibilityType" type="OpenCmsAccessibilityType"
minOccurs="0" maxOccurs="unbounded"/>
It should be exactly like the first element you have
"AccessibilityTypes", but without the final 's'.
Regards,
Bobi.
Francesco wrote:
>
> 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
>
>
>
> ------------------------------------------------------------------------
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
--
Bozidar Ilievski | bozidar.ilievski at netcetera.com.mk
phone +389 -2- 30 64 532 | fax +389 -2- 30 79 495
Netcetera | 1000 Skopje | Macedonia | http://netcetera.com.mk
More information about the opencms-dev
mailing list