AW: [opencms-dev] XML schema error
Holger.Ostlender at Materna.DE
Holger.Ostlender at Materna.DE
Tue Nov 29 13:12:05 CET 2005
It does not work.
I`ve also tried the example jobs, events and faqs demo.
I copied the code from the "Edit controlcode" and I got the same errors.
So I could not create new generic content, but I could use the old
predefined
elements.
-----Ursprüngliche Nachricht-----
Von: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org]Im Auftrag von DI Gunther
Schmidl
Gesendet: Dienstag, 29. November 2005 11:32
An: 'The OpenCms mailing list'
Betreff: AW: [opencms-dev] XML schema error
Holger wrote:
> I tried to create a new XML schema definition.
>
> I follow the steps from
>
http://opencms-forum.de/viewtopic.php?p=2122&sid=d3e979481d32039e4140f70749b
> 134a7
> But all I get are schema errors, type not found OpenCmsString, etc.
Here's an example that works for me; you might want to try it and if it
works, adapt it to your needs.
_______________________________________
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
<xsd:include schemaLocation="opencms://opencms-xmlcontent.xsd"/>
<xsd:element name="Faqs" type="OpenCmsFaqs"/>
<xsd:complexType name="OpenCmsFaqs">
<xsd:sequence>
<xsd:element name="Faq" type="OpenCmsFaq" minOccurs="0"
maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="OpenCmsFaq">
<xsd:sequence>
<xsd:element name="Question" type="OpenCmsString" />
<xsd:element name="Answer" type="OpenCmsHtml" />
<xsd:element name="Release" type="OpenCmsDateTime" />
<xsd:element name="Author" type="OpenCmsString" />
</xsd:sequence>
<xsd:attribute name="language" type="OpenCmsLocale" use="required"/>
</xsd:complexType>
</xsd:schema>
_________________________________________
DI Gunther Schmidl (Consultant)
WebDynamite IT Solutions GmbH
Landstraße 49, A-4020 Linz, Austria
http://www.webdynamite.com
+43 / 732 / 777 810 - 16 (fixed)
+43 / 732 / 777 810 - 50 (fax)
_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://mail.opencms.org/mailman/listinfo/opencms-dev
More information about the opencms-dev
mailing list