[opencms-dev] Defining OpenCMS structured XML content

Andreas Graeff andreas at urthona.de
Sat Mar 29 01:20:06 CET 2008


D'Oh, too late, forget what I said, I was too complex ;-), wrong code 
formatting though I oversee my defintion. Your schema looks OK, do you 
have the schema file in the right folder?.
Regards Andreas




Andreas Graeff schrieb:
> Hi Francesco,
> it looks like you didn't defined the element "AccessibilityTypes", you 
> have to create a separate xsd for it, if you want to have this 
> content-defintion.
> Regards Andreas
>
>
>
> Francesco schrieb:
>   
>>  
>> 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
>>     
>
>
> _______________________________________________
> 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
>
>   




More information about the opencms-dev mailing list